Exemple #1
0
 /**
  * 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;
 }
Exemple #2
0
 /**
  * @test
  */
 public function getPlugin_returnObject()
 {
     $this->mockedPluginLoader->shouldReceive('load')->with('name', 'superclass')->andReturn('stdClass');
     $this->assertInstanceOf('stdClass', $this->invokeMethod('getPlugin', ['name', 'superclass']));
 }
Exemple #3
0
 /**
  * @test
  * @expectedException \Neat\Loader\Exception\UnexpectedValueException
  */
 public function load_existingFileAndNoClass()
 {
     $this->subject->load('plugin 4', $this->superclass);
 }