From af2ce9b2563a15f24d1e7631cf2fd6652c28d750 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Mon, 3 Oct 2016 12:28:19 +0200 Subject: [PATCH] Add PHP 5 yield parenthesis... --- test/DriverTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/DriverTest.php b/test/DriverTest.php index ac2b144..6130d98 100644 --- a/test/DriverTest.php +++ b/test/DriverTest.php @@ -268,7 +268,7 @@ abstract class DriverTest extends \PHPUnit_Framework_TestCase { $mask = umask(062); yield file\put($toUnlink, "unlink me"); umask($mask); - $stat = yield file\stat($toUnlink); + $stat = (yield file\stat($toUnlink)); $this->assertTrue(($stat["mode"] & 0777) == 0604); yield file\unlink($toUnlink); $this->assertNull(yield file\stat($toUnlink)); @@ -290,7 +290,7 @@ abstract class DriverTest extends \PHPUnit_Framework_TestCase { $dir = "{$fixtureDir}/newdir/with/recursive/creation"; yield file\mkdir($dir, 0764, true); // the umask is 022 by default - $stat = yield file\stat($dir); + $stat = (yield file\stat($dir)); $this->assertTrue(($stat["mode"] & 0777) == 0744); }); }