Skip to content

Instantly share code, notes, and snippets.

@masterzen
Created December 29, 2009 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masterzen/265468 to your computer and use it in GitHub Desktop.
Save masterzen/265468 to your computer and use it in GitHub Desktop.
$validator->expects($this->once())
->method('isValid')->id(1)
->with($this->equalTo('test1'))
->will($this->returnValue(true));
$validator->expects($this->once())
->after(1)
->method('isValid')
->with($this->equalTo('test2'))
->will($this->returnValue(true));
==
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-test1
+test2
/Users/brice/cvs/www/common/php/library/DoW/Form/Element.php:629
/Users/brice/cvs/www/test/units/library/DoW/Form/ElementTest.php:479
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment