1
0
mirror of https://github.com/danog/class-finder.git synced 2024-11-30 04:29:03 +01:00
Commit Graph

173 Commits

Author SHA1 Message Date
Hayden Pierce
a62f18ef33 Merge branch 'files' into 'master'
Files Support

See merge request hpierce1102/ClassFinder!3
2018-11-24 17:01:57 +00:00
Hayden Pierce
6707a75a8c Update documentation 2018-11-24 10:56:55 -06:00
Hayden Pierce
0ef031afe5 Add test case to test for 3rd party files 2018-11-24 10:52:01 -06:00
Hayden Pierce
baff32f2f5 Add "Experimental" to the flag.
Hopefully people that don't need it won't use it.
2018-11-24 10:14:55 -06:00
Hayden Pierce
999f912403 Include file integration tests in all test suites 2018-10-21 15:34:30 -05:00
Hayden Pierce
eb27cbfe15 Add a unit test around FilesEntry::knowsNamespace 2018-10-21 15:22:52 -05:00
Hayden Pierce
1e66935193 Make a function private that should have always been private 2018-10-21 15:16:50 -05:00
Hayden Pierce
161825c1ea Add more test cases 2018-10-21 15:14:26 -05:00
Hayden Pierce
bb063b32bb Add a unit test for FilesEntry; reset the index on items coming out of FilesEntry. 2018-10-21 15:07:00 -05:00
Hayden Pierce
7f187675fb Add test confirming that support must be enabled. 2018-10-21 14:30:53 -05:00
Hayden Pierce
39676ce186 Add documentation for "Could not locate PHP" exception. 2018-10-21 10:00:28 -05:00
Hayden Pierce
631e09d802 Provide a more helpful error message if files support fails due to exec() being disabled. 2018-10-21 09:39:21 -05:00
Hayden Pierce
6af0937964 Add a test case 2018-10-21 09:14:41 -05:00
Hayden Pierce
2a9d51931a Dont identify sub-namespaces (intended for later) 2018-10-20 21:33:55 -05:00
Hayden Pierce
ea97ae9550 use defined() correctly. 2018-10-20 21:32:25 -05:00
Hayden Pierce
d5fd7fb8ca Prevent "which is not a batch file or whatever" error that appeared in cmd.exe on Windows machines. 2018-10-20 21:30:20 -05:00
Hayden Pierce
bf38e41718 Find classes in FileEntry 2018-10-20 21:22:19 -05:00
Hayden Pierce
4a91665f3a Implement the mechanism that determines the classes in a file; implement FileEntry::knowsNamespace. 2018-10-20 20:57:53 -05:00
Hayden Pierce
31a4b109ae Add FilesFinder to ClassFinder. 2018-09-29 14:04:35 -05:00
Hayden Pierce
2a7c2dacce Refactor ClassFinder to prepare to add a 3rd finder. 2018-09-29 13:52:24 -05:00
Hayden Pierce
77aa8b9460 Add some minimal test harness. 2018-09-29 13:27:19 -05:00
Hayden Pierce
f56e0b26d4 Bootstrap files finder and supporting classes. 2018-09-29 13:00:26 -05:00
Hayden Pierce
8a653d80ba Bump composer version. 2018-09-23 12:59:52 -05:00
Hayden Pierce
6ea71eee46 Merge branch 'classmap' into 'master'
Support classmap declarations

See merge request hpierce1102/ClassFinder!2
2018-09-23 17:58:54 +00:00
Hayden Pierce
5a9732f72d Update composer lock files.
PHP 5.3 couldn't install some new version of Symfony/yaml or something.
2018-09-22 15:24:53 -05:00
Hayden Pierce
74d70a30c3 Update documentation. 2018-09-16 12:34:30 -05:00
Hayden Pierce
4ecfb28c51 Add classmap unit tests; Fix namespace in PSR4Namespace test. 2018-09-16 11:52:28 -05:00
Hayden Pierce
c161c74a97 Add test confirming loading classes from a 3rd party packages works. 2018-09-11 20:26:46 -05:00
Hayden Pierce
8bf7e0fb4e Update test app to 0.2.0 2018-09-11 20:21:55 -05:00
Hayden Pierce
17ac97c530 Add tests to "all" test suite. 2018-09-09 16:15:33 -05:00
Hayden Pierce
7f72d3f344 Add tests confirming isAcceptableNamespace is working correctly. 2018-09-09 16:14:36 -05:00
Hayden Pierce
f56e335fa5 Add tests confirming isAcceptableNamespace is working correctly. 2018-09-09 13:43:52 -05:00
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