|
|
@ -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'; |
|
|
@ -89,11 +87,11 @@ class AutoloadBuilderTest extends PHPUnit_Framework_TestCase |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @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')); |
|
|
|