1
0
mirror of https://github.com/danog/class-finder.git synced 2024-12-02 17:37:57 +01:00
Commit Graph

191 Commits

Author SHA1 Message Date
Hayden Pierce
dcd38681b2 Improve countMatchingSegments to report matches segments for unacceptable matches. 2018-09-09 13:33:23 -05:00
Hayden Pierce
8b67568fcd Add failing unit test proving that countMatchingSegments is misbehaving 2018-09-09 12:47:24 -05:00
Hayden Pierce
5a71485482 Update CI to run on all tests 2018-09-08 21:07:36 -05:00
Hayden Pierce
45edfbdc56 Move tests that are specific to the PSR4 module to a new file 2018-09-08 21:06:40 -05:00
Hayden Pierce
f21e20df18 Add test covering that entirely unknown namespaces throw an exception. 2018-09-08 21:02:23 -05:00
Hayden Pierce
aa77f1f042 Since multiple autoloading strategies were checked, we can't point out that PSR4 is the problem. 2018-09-08 20:51:48 -05:00
Hayden Pierce
aeb1ce05cc Remove the exception that gets thrown when a bad namespace is specified.
Unknown namespaces are known to contain nothing.
2018-09-08 20:39:18 -05:00
Hayden Pierce
db36194aa1 Prevent PSR4 Finder from raise exceptions when a namespace isn't raised.
Technically, the namespace can exist and still lack registration.
2018-09-08 20:33:16 -05:00
Hayden Pierce
d60a47a55e Implement isNamespaceKnown on ClassmapFinder 2018-09-08 20:10:11 -05:00
Hayden Pierce
f92b617082 Add functionality to better determine if a namespace is known. Pull exception message out to top level, since other Finders may be aware of the namespace. 2018-09-08 15:41:58 -05:00
Hayden Pierce
0fd843fff3 start adding tests for classmap 2018-09-08 14:48:10 -05:00
Hayden Pierce
c12a9779cc Add support for finding classes declared in a classmap 2018-09-08 11:01:08 -05:00
Hayden Pierce
67831937e3 Bootstrap classmap files 2018-09-08 10:40:19 -05:00
Hayden Pierce
5772bca25d Update changelog 2018-09-05 18:36:46 -05:00
Hayden Pierce
af4e00691a Fix composer.json so that it can be installed by PHP 7. 2018-09-05 18:31:15 -05:00
Hayden Pierce
996911e775 Merge branch 'ci' into 'master'
Add support for CI; Fix PHP 5.3; Fix bug on Linux

See merge request hpierce1102/ClassFinder!1
2018-09-03 21:59:57 +00:00
Hayden Pierce
e824be069c Update changelog 2018-09-03 16:57:29 -05:00
Hayden Pierce
4b19db708f Add PHP version to CI output 2018-09-03 16:53:13 -05:00
Hayden Pierce
6f4a2013b6 Explictly list out PHP requirements. 2018-09-03 16:51:23 -05:00
Hayden Pierce
6bf3fca701 Add some notes about CI stuff. 2018-09-03 16:48:35 -05:00
Hayden Pierce
d1ffd7919f Remove short array syntax introduced in PHP 5.4 2018-09-03 16:36:05 -05:00
Hayden Pierce
46a1565cda Expose variable for PHP 5.3 2018-09-03 16:34:14 -05:00
Hayden Pierce
4641b3968c Change visibility of method for PHP 5.3 2018-09-03 16:31:59 -05:00
Hayden Pierce
7e391ec397 Get more interesting information first. 2018-09-03 16:30:30 -05:00
Hayden Pierce
0c3b4c1ac1 Add PHP 5.3 tests 2018-09-03 16:25:03 -05:00
Hayden Pierce
d1d350d304 Downgrade to PHPUnit 4.8.36 for backwards compatibility with PHP 5.3 2018-09-03 16:18:49 -05:00
Hayden Pierce
a3917e50a3 Update job names 2018-09-03 12:34:19 -05:00
Hayden Pierce
d8fc8bdbcf Silence composer install script 2018-09-03 12:30:59 -05:00
Hayden Pierce
5463654340 Address a linux specific bug in where paths with a backslash wouldn't resolve correctly.
Example: realpath(/builds/hpierce1102/ClassFinder/test/app1/src/Foo\Loo) -> false
2018-09-03 12:26:37 -05:00
Hayden Pierce
03250429b9 Install PHPUnit in ClassFinder container 2018-09-03 11:33:19 -05:00
Hayden Pierce
b5ef80c01f Correct paths 2018-09-03 11:17:17 -05:00
Hayden Pierce
47d7068113 Change permissions on php72.sh 2018-09-03 11:11:54 -05:00
Hayden Pierce
3df580a444 Add new PHP 7.2 stuff (since the PHP5.3 stuff will never work due to PHPUnit being too new) 2018-09-03 11:08:37 -05:00
Hayden Pierce
98e6d318a6 Attempt to use my own container? 2018-09-02 20:50:17 -05:00
Hayden Pierce
6428ce7d6f Make file exeuctable 2018-09-02 20:43:52 -05:00
Hayden Pierce
95cc8109b4 Push some random stuff up to gitlab and see what happens. 2018-09-02 20:38:07 -05:00
Hayden Pierce
b1c98ad6cd Cleanup changelog #2 2018-09-02 19:49:37 -05:00
Hayden Pierce
43e3f3aff5 Cleanup changelog 2018-09-02 19:48:42 -05:00
Hayden Pierce
155f902fa0 Update docs 2018-09-02 19:47:08 -05:00
Hayden Pierce
e18e1821a6 Add version 2018-09-02 19:35:17 -05:00
Hayden Pierce
5fc9fa77eb Add composer.lock files. oops. 2018-09-02 19:34:21 -05:00
Hayden Pierce
329e2a6950 test for multiple directories multiple levels deep. 2018-09-02 19:18:44 -05:00
Hayden Pierce
083acd879a Fix first party, multiple directory namespace mapping for PSR4. 2018-09-02 19:12:15 -05:00
Hayden Pierce
b74b0b02c1 Select the best possible namespace instead of the last one to match any of the elements. 2018-09-02 11:14:22 -05:00
Hayden Pierce
88b389e489 Add test case for 3rd party root level namespaces; Add test case for 1st party multi namespaces (failing!) 2018-09-02 10:31:45 -05:00
Hayden Pierce
69ef5ca1f7 Add test cases confirming that 3rd party class loading works. 2018-09-02 10:11:34 -05:00
Hayden Pierce
c72ffabf40 Update haydenpierce/sandbox-app to 0.1.2 2018-09-02 10:04:16 -05:00
Hayden Pierce
169bedf289 Add error messages 2018-08-31 21:22:28 -05:00
Hayden Pierce
6902be8c37 Add test confirming that loading classes from composer is working. 2018-08-31 21:17:33 -05:00
Hayden Pierce
d037898a6e Add haydenpierce/sandbox-app 2018-08-31 21:17:04 -05:00