ptTest = $test; $this->ptRunner = $runner; } public function testParse() { $this->ptRunner->getRecorder()->setTestCase( $this ); $result = $this->ptRunner->runTest( $this->ptTest ); $this->assertEquals( $result->expected, $result->actual ); } public function setUp() { $this->ptTeardownScope = $this->ptRunner->staticSetup(); } public function tearDown() { if ( $this->ptTeardownScope ) { ScopedCallback::consume( $this->ptTeardownScope ); } } }