mlively/Phake — Issue #44: PHPUnit 3.6: Strict standards: Declaration of Phake_PHPUnit_VerifierResultConstraint::evaluate() should be compatible with that of PHPUnit_Framework_Constraint::evaluate()
Author: ezzatron
Created: 2011-12-02 04:05:59+00:00
State: open

This error is thrown under strict mode with PHPUnit 3.6. The fix is pretty easy, here's a diff from my environment:

Index: deploy/vendor/PEAR/Phake/PHPUnit/VerifierResultConstraint.php
===================================================================
--- deploy/vendor/PEAR/Phake/PHPUnit/VerifierResultConstraint.php	(revision 1781)
+++ deploy/vendor/PEAR/Phake/PHPUnit/VerifierResultConstraint.php	(working copy)
@@ -48,7 +48,7 @@
*/
class Phake_PHPUnit_VerifierResultConstraint extends PHPUnit_Framework_Constraint
{
-	public function evaluate($other)
+	public function evaluate($other, $description = '', $returnResult = FALSE)
{
if (!$other instanceof Phake_CallRecorder_VerifierResult)
{