File tree 5 files changed +61
-0
lines changed
tests/functional/fallback-dirs
fall/Symfony/Component/String
5 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 10
10
</testsuite >
11
11
<testsuite name =" Functional tests" >
12
12
<directory suffix =" .phpt" >tests/functional/error-handler/</directory >
13
+ <file >tests/functional/fallback-dirs/test.phpt</file >
13
14
<file >tests/functional/invalid-class/test.phpt</file >
14
15
<file >tests/functional/nested-composer-projects/test.phpt</file >
15
16
<file >tests/issue-13/test.phpt</file >
Original file line number Diff line number Diff line change
1
+ {
2
+ "repositories" : [
3
+ {
4
+ "type" : " vcs" ,
5
+ "url" : " ../../.."
6
+ }
7
+ ],
8
+ "autoload" : {
9
+ "Kcs\\ ClassFinder\\ FunctionalTests\\ " : " src/"
10
+ },
11
+ "require" : {
12
+ "kcs/class-finder" : " dev-master" ,
13
+ "symfony/string" : " *"
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace Symfony \Component \String ;
6
+
7
+ class LazyString implements \Stringable, \JsonSerializable
8
+ {
9
+
10
+ public function __toString (): string
11
+ {
12
+ return 'test ' ;
13
+ }
14
+
15
+ public function jsonSerialize (): mixed
16
+ {
17
+ return [];
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace Kcs \ClassFinder \FunctionalTests ;
6
+
7
+ class Foobar
8
+ {
9
+ }
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Fallback directories
3
+ --INI--
4
+ error_reporting=E_ALL & ~E_NOTICE & ~E_DEPRECATED
5
+ --FILE--
6
+ <?php
7
+ require_once __DIR__ . '/vendor/autoload.php ' ;
8
+
9
+ $ finder = (new Kcs \ClassFinder \Finder \ComposerFinder ())->skipBogonFiles ();
10
+ $ arr = iterator_to_array ($ finder );
11
+
12
+ /** @var ReflectionClass $class */
13
+ $ class = $ arr [\Symfony \Component \String \LazyString::class];
14
+ echo str_replace (DIRECTORY_SEPARATOR , '/ ' , $ class ->getFileName ());
15
+ ?>
16
+ --EXPECTF--
17
+ %s/tests/functional/fallback-dirs/vendor/symfony/string/LazyString.php
You can’t perform that action at this time.
0 commit comments