Re: PEAR & Zend Engine 2
| From: | Wolfram Kriesing | Date: | Thu, 11 Jul 2002 14:52:47 +0000 |
| Subject: | Re: PEAR & Zend Engine 2 | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7662@lists.php.net to get a copy of this message | ||
Sebastian Bergmann wrote:
I'd like to implement PHPUnit_Assert::assertSame(), but this requires Zend Engine 2. Any way I can add a check to the method and bail out if used with Zend Engine 1?does assertSame not do what assertEquals should do? If i look into the JUnit assertEquals it also does compare objects, etc. there is no assertSame, if i was looking right. And about the ZE2, wouldn't
serialize($actual) == serialize($expected)do the same thing? Or/And as phpunit.sf.net does: couldn't we check for a method named 'equals' to call it if it exists, to compare objects? -- Wolfram ... translating template system ... http://sourceforge.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth