Skip to content

Commit

Permalink
Merge pull request #114 from TwistPHP/bug-fixes
Browse files Browse the repository at this point in the history
Added test for File recursiveCopy
  • Loading branch information
danrwalker committed Jun 30, 2017
2 parents 8d4c9b3 + 74bf703 commit 1f7f358
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Core/Utilities/File.Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@ public function testMimeType(){
$this->assertTrue(count($arrTypes) > 1);
}

public function testCreate(){

$this->assertTrue(\Twist::File()->recursiveCreate(TWIST_APP.'/test'));

$this->assertFalse(\Twist::File()->recursiveCreate(TWIST_APP.'/../../../../../../../../../../../../../../../../test'));
}
}

0 comments on commit 1f7f358

Please sign in to comment.