mirror of
https://github.com/danog/file.git
synced 2024-12-02 09:17:57 +01:00
Add PHP 5 yield parenthesis...
This commit is contained in:
parent
cf7a966900
commit
af2ce9b256
@ -268,7 +268,7 @@ abstract class DriverTest extends \PHPUnit_Framework_TestCase {
|
|||||||
$mask = umask(062);
|
$mask = umask(062);
|
||||||
yield file\put($toUnlink, "unlink me");
|
yield file\put($toUnlink, "unlink me");
|
||||||
umask($mask);
|
umask($mask);
|
||||||
$stat = yield file\stat($toUnlink);
|
$stat = (yield file\stat($toUnlink));
|
||||||
$this->assertTrue(($stat["mode"] & 0777) == 0604);
|
$this->assertTrue(($stat["mode"] & 0777) == 0604);
|
||||||
yield file\unlink($toUnlink);
|
yield file\unlink($toUnlink);
|
||||||
$this->assertNull(yield file\stat($toUnlink));
|
$this->assertNull(yield file\stat($toUnlink));
|
||||||
@ -290,7 +290,7 @@ abstract class DriverTest extends \PHPUnit_Framework_TestCase {
|
|||||||
$dir = "{$fixtureDir}/newdir/with/recursive/creation";
|
$dir = "{$fixtureDir}/newdir/with/recursive/creation";
|
||||||
|
|
||||||
yield file\mkdir($dir, 0764, true); // the umask is 022 by default
|
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);
|
$this->assertTrue(($stat["mode"] & 0777) == 0744);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user