some modifications for test isolation in DEBUG environment
This commit is contained in:
@ -34,6 +34,7 @@ class ConfigTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @expectedException Exception
|
||||
* @expectedExceptionMessage Configuration variable
|
||||
*/
|
||||
public function testArrayAsParam()
|
||||
{
|
||||
@ -48,10 +49,10 @@ class ConfigTest extends PHPUnit_Framework_TestCase
|
||||
$new_arr = Config::get(0);
|
||||
$this->assertEquals('ConfigArray', get_class($new_arr));
|
||||
$this->assertEquals('four', $new_arr->offsetGet(4));
|
||||
$this->assertEquals(1, $new_arr->offsetGet('one'));
|
||||
$this->assertEquals(1, $new_arr->one);
|
||||
$this->assertNotEquals(1, $new_arr->offsetGet('two'));
|
||||
|
||||
$new_arr->offsetGet(24);
|
||||
$new_arr->some;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user