ste = new STECore(new TestStorage($this->getDirectory())); $this->ste->mute_runtime_errors = false; $this->setUpSte($this->ste); } protected function setUpSte(STECore $ste): void { } public function testTemplate(): void { $have = $this->ste->exectemplate("test.tpl"); $want = file_get_contents($this->getDirectory() . DIRECTORY_SEPARATOR . "want"); $normalizedHave = self::normalize($have); $normalizedWant = self::normalize($want); self::assertSame($normalizedWant, $normalizedHave); } /** * Get the directory of the test. * @return string */ abstract protected function getDirectory(): string; }