I herd you like tests

So you chose to test your application using unit/functional tests.

How do you ensure your tests do indeed test what you expect?

Fear not! Here comes TestsTester!

Use case

class MyTest extends PHPUnit_Framework_TestCase
    public function testDate()
        $entry = new Entry();


Woops, I forgot to test that the date is in the past:

$this->assertLessThanOrEqual(new DateTime(), $entry->getDate());

Now my sofware is filled with bugs!


With TestsTester, I would have detected that:

class MyTestTest extends TestsTester
    public function testTestDate()
        $test = new Test('MyTest', 'testDate');

        $test->checkAssertLessThanOrEqual('new DateTime()', '$entry->getDate()');

You can then run the test tests:

$ testtester teststests/


TestsTester 1.0.0


There was 1 failure:

1) MyTestTest::testTestDate
'MyTest::testDate' do not test that '$entry->getDate()' is less than or equal to 'new DateTime()'.

Tests: 1, Assertions: 2, Failures: 1.

Give it a try and check out all the crazy features at TestsTester.com.