/** * @covers registerImporter */ public function testRegisterImporter() { $env = new ILess_Environment(); $i = new ILess_Importer($env, array(), new ILess_Cache_None()); $r = $i->registerImporter(new ILess_Importer_FileSystem(), 'file_system'); $i->registerImporter(new ILess_Importer_FileSystem(), 'disc'); // fluent interface $this->assertInstanceOf('ILess_Importer', $r); $this->assertInstanceOf('ILess_Importer_FileSystem', $i->getImporter('file_system')); $this->assertInstanceOf('ILess_Importer_FileSystem', $i->getImporter('disc')); }