mirror of
https://github.com/danog/class-finder.git
synced 2025-01-22 13:51:42 +01:00
test for multiple directories multiple levels deep.
This commit is contained in:
parent
083acd879a
commit
329e2a6950
9
test/app1/multi/Jik/Yop/Rik.php
Normal file
9
test/app1/multi/Jik/Yop/Rik.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace TestApp1\Multi\Yop;
|
||||
|
||||
class Rik
|
||||
{
|
||||
|
||||
}
|
||||
|
9
test/app1/multi/Jik/Yop/Tik.php
Normal file
9
test/app1/multi/Jik/Yop/Tik.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace TestApp1\Multi\Yop;
|
||||
|
||||
class Tik
|
||||
{
|
||||
|
||||
}
|
||||
|
9
test/app1/multi/Jiu/Yop/Eij.php
Normal file
9
test/app1/multi/Jiu/Yop/Eij.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace TestApp1\Multi\Yop;
|
||||
|
||||
class Eij
|
||||
{
|
||||
|
||||
}
|
||||
|
9
test/app1/multi/Jiu/Yop/Rij.php
Normal file
9
test/app1/multi/Jiu/Yop/Rij.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace TestApp1\Multi\Yop;
|
||||
|
||||
class Rij
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -62,6 +62,16 @@ class ClassFinderTest extends TestCase
|
||||
),
|
||||
'ClassFinder should be able to find 1st party classes when a provided namespace root maps to multiple directories (Example: "HaydenPierce\\SandboxAppMulti\\": ["multi/Bop", "multi/Bot"] )'
|
||||
),
|
||||
array(
|
||||
'TestApp1\Multi\Yop',
|
||||
array(
|
||||
'TestApp1\Multi\Yop\Rik',
|
||||
'TestApp1\Multi\Yop\Tik',
|
||||
'TestApp1\Multi\Yop\Eij',
|
||||
'TestApp1\Multi\Yop\Rij'
|
||||
),
|
||||
'ClassFinder should be able to find 1st party classes when a provided namespace root maps to multiple directories multiple levels deep. (Example: "HaydenPierce\\SandboxAppMulti\\": ["multi/Bop", "multi/Bot"] )'
|
||||
),
|
||||
array(
|
||||
'HaydenPierce\SandboxApp',
|
||||
array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user