Req #16042 [Opn->Csd]: Change Payment_Process2_Type::isValid to be a non static method

From: Date: Thu, 19 Mar 2009 03:04:09 +0000
Subject: Req #16042 [Opn->Csd]: Change Payment_Process2_Type::isValid to be a non static method
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-204@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16042&edit=1 ID: 16042 Updated by: daniel.oconnor@gmail.com Reported By: daniel dot oconnor at gmail dot com Summary: Change Payment_Process2_Type::isValid to be a non static method -Status: Open +Status: Closed Type: Feature/Change Request Package: Payment_Process2 Package Version: 0.1.1 PHP Version: 5.2.9 -Assigned To: +Assigned To: doconnor Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Previous Comments: ------------------------------------------------------------------------ [2009-03-19 02:54:14] doconnor Description: ------------ It's a pain and not mockable. I can't do: class MockCard extends Payment_Process2_Type_CreditCard { public function isValid() { return true; } } but instead have to litter my test code with dummy visa and mastercard numbers. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16042&edit=1

« previous php.pear.bugs (#204) next »