/** * Retrieves the content. * * @return string */ public function getContent() { $content = '<span>Class Locations: </span>'; $content .= $this->formatLocations($this->classLoader->getLocations()); $content .= '<br />'; $content .= '<span>Plugin Locations: </span>'; $content .= $this->formatLocations($this->pluginLoader->getLocations()); $content .= '<br />'; $content .= '<span>File Locations: </span>'; $content .= $this->formatLocations($this->fileLoader->getLocations()); return $content; }
/** * @test */ public function getPlugin_returnObject() { $this->mockedPluginLoader->shouldReceive('load')->with('name', 'superclass')->andReturn('stdClass'); $this->assertInstanceOf('stdClass', $this->invokeMethod('getPlugin', ['name', 'superclass'])); }
/** * @test * @expectedException \Neat\Loader\Exception\UnexpectedValueException */ public function load_existingFileAndNoClass() { $this->subject->load('plugin 4', $this->superclass); }