1
0
mirror of https://github.com/danog/class-finder.git synced 2024-11-26 20:14:59 +01:00

Remove the exception that gets thrown when a bad namespace is specified.

Unknown namespaces are known to contain nothing.
This commit is contained in:
Hayden Pierce 2018-09-08 20:39:18 -05:00
parent db36194aa1
commit aeb1ce05cc

View File

@ -103,17 +103,6 @@ class ClassFinderTest extends \PHPUnit_Framework_TestCase
);
}
/**
* @expectedException HaydenPierce\ClassFinder\Exception\ClassFinderException
* @expectedExceptionMessage Unknown namespace 'DoesNotExist\Foo\Bar'. You should add the namespace to composer.json.
*/
public function testThrowsOnUnknownNameSpace()
{
// The top level namespace ("DoesNotExist") wasn't registered in composer.json.
// "Unknown namespace '$namespace'. You should add the namespace prefix to composer.json. See '$link' for details."
ClassFinder::getClassesInNamespace('DoesNotExist\Foo\Bar');
}
/**
* @expectedException HaydenPierce\ClassFinder\Exception\ClassFinderException
* @expectedExceptionMessageRegExp /Unknown namespace 'TestApp1\\DoesNotExist'\. Checked for files in .*, but that directory did not exist\./