Moving setExpectedException
This commit is contained in:
@ -60,12 +60,12 @@ class AutoloadBuilderTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testBuildParams()
|
||||
{
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$this->setConstants();
|
||||
$autoload = self::$file;
|
||||
$dirs = 'string';
|
||||
$builder = new AutoloadBuilder($autoload, $dirs);
|
||||
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$builder->build();
|
||||
}
|
||||
|
||||
@ -91,8 +91,10 @@ class AutoloadBuilderTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testAccessDenied()
|
||||
{
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$this->setConstants();
|
||||
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
|
||||
chmod(self::$file, 0400);
|
||||
$builder = new AutoloadBuilder(self::$file, array(self::$path . '/' . self::$app . '/src', self::$path . '/' . self::$app . '/cache', self::$path . '/lib'));
|
||||
|
||||
|
Reference in New Issue
Block a user