Moving setExpectedException
This commit is contained in:
@ -144,10 +144,10 @@ class LoadTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testAutoloadGetFilePathNullIndex()
|
||||
{
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$this->setConstants();
|
||||
Load::setAutoloadFrom(self::$file);
|
||||
$autoload = require(self::$file);
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$this->assertNotEmpty(Load::getFilePath('anton'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user