/** * 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; }
/** * @test * @expectedException \Neat\Loader\Exception\OutOfBoundsException */ public function locate_nonExistingDomain() { $this->subject->locate('test.php', 'non_existing_domain'); }