Created
November 8, 2016 21:30
-
-
Save jeremyharris/99a0b59e8df57846a18de6f710f727c7 to your computer and use it in GitHub Desktop.
Revisions
-
jeremyharris created this gist
Nov 8, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ <?php class CallbackCaller { public function on($callback) { // whoops doesn't fire, perhaps due to code error } } class AssertionTest extends \PHPUnit_Framework_TestCase { public function testAssertionInCallback() { $class = new CallbackCaller(); $class->on(function() { $this->assertTrue(false); }); $this->assertTrue(true); } }