From 669aaa2413bfb718731f059402bbe7387abd1252 Mon Sep 17 00:00:00 2001 From: Erik Amaru Ortiz Date: Fri, 18 May 2012 10:25:49 -0400 Subject: [PATCH] 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 --- tests/unit/gulliver/system/GTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/gulliver/system/GTest.php b/tests/unit/gulliver/system/GTest.php index c6cc9ea1b..5ca29343c 100644 --- a/tests/unit/gulliver/system/GTest.php +++ b/tests/unit/gulliver/system/GTest.php @@ -1327,7 +1327,9 @@ class GTest extends PHPUnit_Framework_TestCase */ 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)); } /**