-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.php
More file actions
36 lines (28 loc) · 1023 Bytes
/
docs.php
File metadata and controls
36 lines (28 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
declare(strict_types=1);
use Exan\Pudocumenter\Documenter;
use Exan\Pudocumenter\StdOutMarkdownPrinter;
use Exan\Pudocumenter\StdOutMarkdownTOCPrinter;
use Tests\Documentation\AssertingExpectationsTest;
use Tests\Documentation\BasicMockingTest;
use Tests\Documentation\CompatibilityTest;
use Tests\Documentation\DefaultReturnValuesTest;
use Tests\Documentation\OrderExpectationTest;
use Tests\Documentation\FilteringMethodsTest;
use Tests\Documentation\PartialMocksTest;
use Tests\Documentation\ReplacingMethodTest;
require './vendor/autoload.php';
$documenter = new Documenter(
BasicMockingTest::class,
ReplacingMethodTest::class,
AssertingExpectationsTest::class,
OrderExpectationTest::class,
FilteringMethodsTest::class,
DefaultReturnValuesTest::class,
PartialMocksTest::class,
CompatibilityTest::class,
);
echo '# Table of contents', PHP_EOL, PHP_EOL;
$documenter->document(new StdOutMarkdownTOCPrinter());
echo PHP_EOL;
$documenter->document(new StdOutMarkdownPrinter());