forked from nette/tester
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
34 lines (29 loc) · 1.05 KB
/
bootstrap.php
File metadata and controls
34 lines (29 loc) · 1.05 KB
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
<?php
/**
* Test environment initialization.
*/
declare(strict_types=1);
require __DIR__ . '/Framework/Helpers.php';
require __DIR__ . '/Framework/Ansi.php';
require __DIR__ . '/Framework/Environment.php';
require __DIR__ . '/Framework/DataProvider.php';
require __DIR__ . '/Framework/Assert.php';
require __DIR__ . '/Framework/AssertException.php';
require __DIR__ . '/Framework/Dumper.php';
require __DIR__ . '/Framework/FileMock.php';
require __DIR__ . '/Framework/TestCase.php';
require __DIR__ . '/Framework/FileMutator.php';
require __DIR__ . '/Framework/Expect.php';
require __DIR__ . '/Framework/HttpAssert.php';
require __DIR__ . '/CodeCoverage/Collector.php';
require __DIR__ . '/Runner/Job.php';
if (extension_loaded('libxml') && extension_loaded('SimpleXML')) {
require __DIR__ . '/Framework/DomQuery.php';
} else {
spl_autoload_register(function (string $class): void {
if ($class === Tester\DomQuery::class) {
throw new LogicException('Tester\DomQuery requires libxml and SimpleXML extensions to be loaded.');
}
});
}
Tester\Environment::setup();