targetFile('index.html'))); $contents = file_get_contents($this->targetFile('index.html')); assert($contents !== false); self::assertStringContainsString('This file is included', $contents); foreach ($this->builder->getDocuments()->getAll() as $document) { foreach ($document->getEnvironment()->getMetas()->getAll() as $meta) { foreach ($meta->getTocs() as $toc) { foreach ($toc as $tocLine) { self::assertStringNotContainsString('include.inc', $tocLine); } } } } } protected function getFixturesDirectory(): string { return 'BuilderInclude'; } }