configuration = new Configuration(); $this->configuration->setUseCachedMetas(false); $this->configuration->abortOnError(false); $this->configuration->silentOnError(true); $this->configuration->setIgnoreInvalidReferences(false); $this->builder = new Builder(new Kernel($this->configuration)); } public function testReferenceDoesNotExist(): void { $this->builder->build($this->sourceFile(), $this->targetFile()); $contents = $this->getFileContents($this->targetFile('subdir/index.html')); self::assertStringContainsString('

Test link 1 to

', $contents); self::assertStringContainsString('

Test link 2 to

', $contents); } protected function getFixturesDirectory(): string { return 'BuilderReferenceDoesNotExist'; } }