Removed expectation exceptions
This commit is contained in:
@ -34,8 +34,6 @@ class AutoloadBuilderTest 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 static function setUpBeforeClass()
|
||||
{
|
||||
@ -58,11 +56,11 @@ class AutoloadBuilderTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @TODO: AutoloadBuilder - check input params: string for filename, array for dirs
|
||||
* @expectedException PHPUnit_Framework_Error
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testBuildParams()
|
||||
{
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$this->setConstants();
|
||||
$autoload = self::$file;
|
||||
$dirs = 'string';
|
||||
@ -82,18 +80,18 @@ class AutoloadBuilderTest extends PHPUnit_Framework_TestCase
|
||||
$builder->build();
|
||||
|
||||
$this->assertFileExists(self::$file);
|
||||
|
||||
|
||||
$array = require self::$file;
|
||||
$this->assertInternalType('array', $array);
|
||||
$this->assertNotEmpty($array);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException PHPUnit_Framework_Error
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testAccessDenied()
|
||||
{
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$this->setConstants();
|
||||
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