replacement @expectedException to setExpectedException

This commit is contained in:
Vyacheslav Agafonov
2011-12-01 12:04:58 +04:00
parent dfa661e2e8
commit b80e0eb7e5

View File

@ -140,11 +140,11 @@ class LoadTest extends PHPUnit_Framework_TestCase
/**
* @TODO: Load::getFilePath - check for wrong index
* @expectedException PHPUnit_Framework_Error
* @runInSeparateProcess
*/
public function testAutoloadGetFilePathNullIndex()
{
$this->setExpectedException('PHPUnit_Framework_Error');
$this->setConstants();
Load::setAutoloadFrom(self::$file);
$autoload = require(self::$file);