Commit 6775834
committed
Add lib/autoload.php to allow manual (i.e. without composer) installation.
The custom autoloader created by this commit translates class
names into filesystem locations by a simple rule: it replaces
backslashes with frontslashes, and adds ".php" on the end. Two
locations are searched for this class implementation file: first we
check under lib/, then under test/.
The existing test/bootstrap.php checked for vendor/autoload.php and
would show an error to the user if it did not exist. Now that we have
our own autoloader, we can just use that instead. So, test/bootstrap.php
was removed, and phpunit.xml.dist was pointed at the new lib/autoload.php
for its bootstrap code.
Thanks to Artur Weigandt for the implementation of the autoloader.1 parent 8a3a597 commit 6775834
3 files changed
+32
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
This file was deleted.
0 commit comments