Created
August 23, 2012 15:45
-
-
Save guiled/3437879 to your computer and use it in GitHub Desktop.
Atoum and then feature
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 characters
<?php | |
$this->assert | |
->if($inc = function (&$i) { $i++; return $i}) | |
->and($i=0) | |
->then('test the inc') | |
->number($inc($i)) | |
->isEqualTo(1) | |
->then('and test it with same context') | |
->number($inc($i)) | |
->isEqualTo(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment