1 | <?php // phpcs:ignore WordPress.Files.FileName |
||
19 | class AutoloaderHandlerTest extends TestCase { |
||
20 | |||
21 | /** |
||
22 | * The php autoloader mock; |
||
23 | * |
||
24 | * @var PHP_Autoloader|\PHPUnit\Framework\MockObject\MockObject |
||
25 | */ |
||
26 | private $php_autoloader; |
||
27 | |||
28 | /** |
||
29 | * The hook manager mock; |
||
30 | * |
||
31 | * @var Hook_Manager|\PHPUnit\Framework\MockObject\MockObject |
||
32 | */ |
||
33 | private $hook_manager; |
||
34 | |||
35 | /** |
||
36 | * The manifest reader mock. |
||
37 | * |
||
38 | * @var Manifest_Reader|\PHPUnit\Framework\MockObject\MockObject |
||
39 | */ |
||
40 | private $manifest_reader; |
||
41 | |||
42 | /** |
||
43 | * The autoloader handler we're testing. |
||
44 | * |
||
45 | * @var Autoloader_Handler |
||
46 | */ |
||
47 | private $autoloader_handler; |
||
48 | |||
49 | /** |
||
50 | * Setup runs before each test. |
||
51 | * |
||
52 | * @before |
||
53 | */ |
||
54 | public function set_up() { |
||
74 | |||
75 | /** |
||
76 | * Tests that the handler is able to activate the autoloader successfully. |
||
77 | */ |
||
78 | public function test_activates_autoloader() { |
||
93 | |||
94 | /** |
||
95 | * Tests that the handler is able to reset the autoloader successfully. |
||
96 | */ |
||
97 | public function test_reset_autoloader() { |
||
110 | } |
||
111 |