Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add path_ok helper

  • Loading branch information...
commit cdea0fbb9f95354c5012b233b4fcc25cc1d09926 1 parent 3b8d86f
@c9s authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/PHPUnit_TestMore.php
View
6 src/PHPUnit_TestMore.php
@@ -78,6 +78,12 @@ function file_equals($e,$v,$msg = null)
$testobj->assertFileEquals($e,$v,$msg);
}
+function path_ok( $path , $msg = null ) {
+ $stacks = debug_backtrace( DEBUG_BACKTRACE_PROVIDE_OBJECT );
+ $testobj = $stacks[1]['object'];
+ $testobj->assertFileExists($path , $msg );
+}
+
function dump($e)
{
var_dump($e);
Please sign in to comment.
Something went wrong with that request. Please try again.