Are there any open source SimpleTest Test Cases that test PHP SPL interfaces

Posted by JW on Stack Overflow See other posts from Stack Overflow or by JW
Published on 2010-04-27T07:37:50Z Indexed on 2010/06/14 10:42 UTC
Read the original article Hit count: 262

I have quite a few objects in my system that implement the PHP SPL Iterator interface.

As I write them I also write tests.

I know that writing tests is generally NOT a cut 'n paste job.

But, when it comes to testing classes that implement Standard PHP Library interfaces, surely it makes sense to have a few script snippets that can be borrowed and dropped in to a Test class - purely to test that particular interface.

It seems sensible to have these publicly available. So, I was wondering if you knew of any?

© Stack Overflow or respective owner

Related posts about php

Related posts about unit-testing