1
0
mirror of https://github.com/danog/class-finder.git synced 2024-11-26 20:14:59 +01:00
Commit Graph

141 Commits

Author SHA1 Message Date
Hayden Pierce
4d57ebc353 Merge branch 'master' into 'master'
Fix to remove warnings if classmap is empty

Closes #4

See merge request hpierce1102/ClassFinder!6
2019-01-15 00:52:22 +00:00
Marian Sievers
ebd9429717 Fix to remove warnings if classmap is empty 2019-01-15 00:52:22 +00:00
Hayden Pierce
bc50571d29 Bump composer version. 2018-12-31 21:10:02 -06:00
Hayden Pierce
cdc8b1473b Merge branch 'recursive-mode' into 'master'
Recursive mode

See merge request hpierce1102/ClassFinder!4
2019-01-01 03:01:05 +00:00
Hayden Pierce
d6c50baec9 remove TODOs that were completed or no longer planned. 2018-12-31 20:54:48 -06:00
Hayden Pierce
72f453486c Cleanup some comments 2018-12-31 20:51:21 -06:00
Hayden Pierce
8aede23ac8 Disable classmap support for some PSR4 tests. 2018-12-31 20:35:27 -06:00
Hayden Pierce
f7fca13795 Update docs 2018-12-31 19:52:49 -06:00
Hayden Pierce
4a5e77632d Add test confirming that recursive namespaces work 2018-12-31 19:18:07 -06:00
Hayden Pierce
16548ebd82 Add failing unit test for classmap recursive mode 2018-12-31 13:33:39 -06:00
Hayden Pierce
b5a075ffd6 Add failing unit test for classmap recursive mode 2018-12-31 12:54:44 -06:00
Hayden Pierce
7b187f1564 Use all compatible registered namespaces in recursive mode. 2018-12-09 11:56:42 -06:00
Hayden Pierce
4bcdcad244 Remove duplicate test that was testing checking for a fatal error in a circumstance 2018-11-29 20:16:07 -06:00
Hayden Pierce
76a491b7ad Only look at direct classes when in recursive mode; make namespaces consistently end in a \ 2018-11-29 20:06:48 -06:00
Hayden Pierce
f80f856a9d Create PSR4Namespaces with their direct subnamespaces 2018-11-29 18:47:29 -06:00
Hayden Pierce
0c7e79a719 remove extra array element that caused an error. 2018-11-24 19:44:47 -06:00
Hayden Pierce
f0bfdb3ce6 Add recursive mode; fix up some PHPDocs
PHPStorm was complaining about the PHPDocs.
2018-11-24 19:40:35 -06:00
Hayden Pierce
7aa245e68e Add failing tests for PSR4 2018-11-24 19:39:48 -06:00
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