I'm wondering if there's a way to run a PHPUnit test from an object. Example
<?php
class FooTest extends PHPUnit_Framework_TestCase{
public function testTrue(){
$this->assertTrue(true);
}
}
Then in another PHP file:
<?php
$test = new FooTest;
// function to run $test->testTrue();
Is this possible? Thanks.