replacement @expectedException to setExpectedException

This commit is contained in:
Vyacheslav Agafonov
2011-12-01 17:40:31 +04:00
parent c6b48f084d
commit bafe38ccf0
2 changed files with 3 additions and 4 deletions

View File

@ -27,11 +27,11 @@ class AutoloadBuilderTestVFS extends PHPUnit_Framework_TestCase
/**
* @TODO: Load->buildAutoload() - uses two paths - PATH . '/' . APP . '/src' and PATH . '/lib' those are not checked. Can couse error.
* @expectedException UnexpectedValueException
* @expectedException PHPUnit_Framework_Error
*/
public function setUp()
{
$this->setExpectedException('UnexpectedValueException');
$this->setExpectedException('PHPUnit_Framework_Error');
if (!defined('PATH')) {
define('PATH', realpath(dirname(__FILE__) . '/../../../..'));
}