Browse Source

replacement @expectedException to setExpectedException

master
Vyacheslav Agafonov 13 years ago
parent
commit
b80e0eb7e5
  1. 2
      tests/LoadTest.php

2
tests/LoadTest.php

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

Loading…
Cancel
Save