clearParseStartTime(); $edit = new PreparedEdit(); $edit->parserOutputCallback = static function () { $output = new ParserOutput(); $output->clearParseStartTime(); return $output; }; $this->assertEquals( $output, $edit->getOutput() ); $this->assertEquals( $output, $edit->output ); } }