示例#1
0
 /**
  * Locates a plugin, which implements/extends a superclass.
  *
  * @param string $name
  * @param string $superclass
  *
  * @return string|false
  */
 public function locate($name, $superclass)
 {
     $this->assertPluginNameIsNotEmpty($name);
     $superclass = trim($superclass, '\\');
     $file = $this->getClassName($name) . '.php';
     $path = parent::locate($file, $superclass);
     return $path;
 }
示例#2
0
 /**
  * @test
  * @expectedException \Neat\Loader\Exception\OutOfBoundsException
  */
 public function locate_nonExistingDomain()
 {
     $this->subject->locate('test.php', 'non_existing_domain');
 }