Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add contains_ok method

  • Loading branch information...
commit e10a5ba320b9c3d3f7d42436e9196238558b8b51 1 parent a717114
@c9s authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/PHPUnit/TestMore.php
View
6 src/PHPUnit/TestMore.php
@@ -86,6 +86,12 @@ function skip( $msg )
$testobj->markTestSkipped( $msg );
}
+function contains_ok($e,$v, $msg = null)
+{
+ $stacks = debug_backtrace( DEBUG_BACKTRACE_PROVIDE_OBJECT );
+ $testobj = $stacks[1]['object'];
+ $testobj->assertContains($e,$v,$msg);
+}
function like( $e, $v , $msg = null )
{
Please sign in to comment.
Something went wrong with that request. Please try again.