File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+ use Doctum \Doctum ;
4+ use Doctum \RemoteRepository \GitHubRemoteRepository ;
5+ use Symfony \Component \Finder \Finder ;
6+
7+ $ rootDir = __DIR__ . '/ ' ;
8+ $ sourceRootDir = $ rootDir . 'sources/phpunit ' ;
9+
10+ $ iterator = Finder::create ()
11+ ->files ()
12+ ->name ('*.php ' )
13+ ->path ('src ' )
14+ ->in ($ sourceRootDir );
15+
16+ return new Doctum ($ iterator , [
17+ 'title ' => 'PHPUnit ' ,
18+ 'build_dir ' => $ rootDir . '/phpunit ' ,
19+ 'cache_dir ' => $ rootDir . '/cache ' ,
20+ 'source_dir ' => $ rootDir ,
21+ 'version ' => 'main ' ,// For remote links to work
22+ 'remote_repository ' => new GitHubRemoteRepository ('sebastianbergmann/phpunit ' , $ sourceRootDir ),
23+ 'footer_link ' => [
24+ 'href ' => 'https://phpunit.de/documentation.html ' ,
25+ 'rel ' => 'noreferrer noopener ' ,
26+ 'target ' => '_blank ' ,
27+ 'before_text ' => 'This documentation is built for the ' ,
28+ 'link_text ' => 'PHPUnit ' ,
29+ 'after_text ' => 'project. ' ,
30+ ],
31+ ]);
You can’t perform that action at this time.
0 commit comments