1 | <?php // phpcs:ignore WordPress.Files.FileName |
||
17 | class AutoloaderLocatorTest extends TestCase { |
||
18 | |||
19 | /** |
||
20 | * The older version of the autoloader that we want to use. Note that |
||
21 | * the version should support PSR-4 since this one does. |
||
22 | */ |
||
23 | const OLDER_VERSION = '2.4.0.0'; |
||
24 | |||
25 | /** |
||
26 | * The directory of a plugin using the autoloader. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | private static $older_plugin_dir; |
||
31 | |||
32 | /** |
||
33 | * The locator we are testing. |
||
34 | * |
||
35 | * @var Autoloader_Locator |
||
36 | */ |
||
37 | private $autoloader_locator; |
||
38 | |||
39 | /** |
||
40 | * Setup before class runs before the class. |
||
41 | * |
||
42 | * @beforeClass |
||
43 | */ |
||
44 | public static function set_up_before_class() { |
||
47 | |||
48 | /** |
||
49 | * Setup executes before each test. |
||
50 | * |
||
51 | * @before |
||
52 | */ |
||
53 | public function set_up() { |
||
56 | |||
57 | /** |
||
58 | * Tests the locator to find the latest version of the autoloader. |
||
59 | */ |
||
60 | public function test_finds_latest_autoloader() { |
||
80 | |||
81 | /** |
||
82 | * Tests that the locator can find the path to the autoloader file. |
||
83 | */ |
||
84 | public function test_gets_autoloader_path() { |
||
88 | |||
89 | /** |
||
90 | * Tests that the locator returns null when no version could be found. |
||
91 | */ |
||
92 | public function test_gets_autoloader_version_as_null_without_class() { |
||
97 | |||
98 | /** |
||
99 | * Tests that the locator can find the version.. |
||
100 | */ |
||
101 | public function test_gets_autoloader_version() { |
||
106 | } |
||
107 |