targetFile('subdir/toctree.html'))); self::assertTrue(file_exists($this->targetFile('orphaned/file.html'))); self::assertTrue(file_exists($this->targetFile('wildcards/bugfix1.html'))); self::assertTrue(file_exists($this->targetFile('wildcards/feature1.html'))); self::assertTrue(file_exists($this->targetFile('wildcards/feature2.html'))); self::assertTrue(file_exists($this->targetFile('wildcards/index.html'))); } public function testMaxDepth(): void { $contents = $this->getFileContents($this->targetFile('index.html')); // :maxdepth: 1 self::assertStringContainsString('
', $contents); // :maxdepth: 2 self::assertStringContainsString('
', $contents); // :maxdepth: 3 self::assertStringContainsString('
', $contents); // :maxdepth: 4 self::assertStringContainsString('
', $contents); } protected function getFixturesDirectory(): string { return 'BuilderToctree'; } }