ptTest = $test; $this->ptRunner = $runner; } public function testParse() { $this->ptRunner->getRecorder()->setTestCase( $this ); $result = $this->ptRunner->runTest( $this->ptTest ); if ( $result === false ) { // Test intentionally skipped. $result = new ParserTestResult( $this->ptTest, "SKIP", "SKIP" ); } $this->assertEquals( $result->expected, $result->actual ); } public function setUp() : void { $this->ptTeardownScope = $this->ptRunner->staticSetup(); } public function tearDown() : void { if ( $this->ptTeardownScope ) { ScopedCallback::consume( $this->ptTeardownScope ); } } }