Re: Tests for new accessors
| From: | Nathan Nobbe | Date: | Sun, 14 Oct 2012 16:20:38 +0000 |
| Subject: | Re: Tests for new accessors | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-66756@lists.php.net to get a copy of this message | ||
I think it makes perfect sense, Clint, and would love to hear what others
have to say.
I've often built 'test libraries' or code that is shared among a set of
unit tests. No point in duplicating code just because you're writing tests
IMO.
-nathan
On Sun, Oct 14, 2012 at 4:39 AM, Clint Priest <cpriest@zerocue.com> wrote:
> Would it be frowned upon to use include(); within a set of tests to
> include base code against which multiple tests can be run?
>
> I've got around 80 tests now and a change to the RFC is going to require
> probably 100% of them to have some change. In addition, there are
> variations of the same test (each of which will fatal error) and they can
> all use the same "base class."
>
> What do you think?
>
> Thanks,
>
> -Clint
>