Skip to content

Commit

Permalink
Try again at fixing the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 11, 2012
1 parent 2d34307 commit 81b4871
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Utility/FolderTest.php
Expand Up @@ -283,16 +283,16 @@ public function testChmod() {
$this->assertTrue($File->create());

$this->assertTrue($Folder->chmod($new, 0755, true));
$this->assertTrue($Folder->chmod($new, 0644, true, array('skip_me.php', 'test2')));
$this->assertTrue($Folder->chmod($new, 0744, true, array('skip_me.php', 'test2')));

$perms = substr(sprintf('%o', fileperms($new . DS . 'test1')), -4);
$this->assertEquals($perms, '0644');
$this->assertEquals($perms, '0744');

$perms = substr(sprintf('%o', fileperms($new . DS . 'test2')), -4);
$this->assertEquals($perms, '0755');

$perms = substr(sprintf('%o', fileperms($new . DS . 'test1.php')), -4);
$this->assertEquals($perms, '0644');
$this->assertEquals($perms, '0744');

$perms = substr(sprintf('%o', fileperms($new . DS . 'skip_me.php')), -4);
$this->assertEquals($perms, '0755');
Expand Down

0 comments on commit 81b4871

Please sign in to comment.