[HttpFoundation] Fixed test under Windows environment

This commit is contained in:
Drak 2012-08-10 10:43:07 +01:00
parent dd9afddfd9
commit fa93324791
1 changed files with 2 additions and 3 deletions

View File

@ -46,10 +46,9 @@ class NativeFileSessionHandlerTest extends \PHPUnit_Framework_TestCase
{ {
$handler = new NativeFileSessionHandler($savePath); $handler = new NativeFileSessionHandler($savePath);
$this->assertEquals($expectedSavePath, ini_get('session.save_path')); $this->assertEquals($expectedSavePath, ini_get('session.save_path'));
$dir = realpath('/'.$path); $this->assertTrue(is_dir(realpath($path)));
$this->assertTrue(is_dir(realpath($dir)));
rmdir($dir); rmdir($path);
} }
public function savePathDataProvider() public function savePathDataProvider()