test-G "fix on function testSys_get_temp_dir()"

test function was udated for others operative systems like macosx
where the temporal dir. isn't /tmp
This commit is contained in:
Erik Amaru Ortiz
2012-05-18 10:25:49 -04:00
parent df2af79703
commit 669aaa2413

View File

@@ -1327,7 +1327,9 @@ class GTest extends PHPUnit_Framework_TestCase
*/ */
public function testSys_get_temp_dir() public function testSys_get_temp_dir()
{ {
$this->assertEquals('/tmp',G::sys_get_temp_dir()); $tmpDir = G::sys_get_temp_dir();
$this->assertFileExists($tmpDir);
$this->assertTrue(is_writable($tmpDir));
} }
/** /**