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

72 Commits

Author SHA1 Message Date
7d76667d46
Switch namespace 2020-10-11 18:24:12 +02:00
ff233b606d
Fix tests a bit 2020-10-11 17:47:28 +02:00
d1f7671588
Add support for finding interfaces and traits 2020-10-11 17:39:05 +02:00
Benedikt Franke
b5e76d3a20 Fix the class name of FilesEntryTest.php 2020-03-24 09:59:18 +01:00
Benedikt Franke
841294cd53 Add ClassFinder::namespaceHasClasses instead of throwing on empty namespaces 2019-09-15 14:28:01 +00:00
Hayden Pierce
d3396fbf04 Add test demonstrating that disabling exec causes things to blow up 2019-07-14 10:07:32 -05:00
Hayden Pierce
d005859a8c Remove incorrect test case; Fix incorrect namespace 2019-03-02 11:49:31 -06:00
Hayden Pierce
e84a97444f Put everything back into the preexisting scripts 2019-02-25 20:11:00 -06:00
Hayden Pierce
f2f734b409 CI Testing 2019-02-25 20:08:29 -06:00
Hayden Pierce
a40678dbcd CI Testing 2019-02-25 19:03:24 -06:00
Hayden Pierce
c6fe61af45 Add failing tests 2019-02-25 18:24:44 -06:00
Hayden Pierce
1428e1a0a6 Downgrade components to get 5.3 compatibility again 2019-02-03 09:41:28 -06:00
Hayden Pierce
8aede23ac8 Disable classmap support for some PSR4 tests. 2018-12-31 20:35:27 -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
7aa245e68e Add failing tests for PSR4 2018-11-24 19:39:48 -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
eb27cbfe15 Add a unit test around FilesEntry::knowsNamespace 2018-10-21 15:22:52 -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
6af0937964 Add a test case 2018-10-21 09:14:41 -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
77aa8b9460 Add some minimal test harness. 2018-09-29 13:27:19 -05: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
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
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
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
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
d1d350d304 Downgrade to PHPUnit 4.8.36 for backwards compatibility with PHP 5.3 2018-09-03 16:18:49 -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