Permalink
Browse files

Add contains_ok method

  • Loading branch information...
1 parent a717114 commit e10a5ba320b9c3d3f7d42436e9196238558b8b51 @c9s committed Mar 21, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 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 )
{

0 comments on commit e10a5ba

Please sign in to comment.