1
0
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:
Hayden Pierce 2018-09-02 19:18:44 -05:00
parent 083acd879a
commit 329e2a6950
5 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
namespace TestApp1\Multi\Yop;
class Rik
{
}

View File

@ -0,0 +1,9 @@
<?php
namespace TestApp1\Multi\Yop;
class Tik
{
}

View File

@ -0,0 +1,9 @@
<?php
namespace TestApp1\Multi\Yop;
class Eij
{
}

View File

@ -0,0 +1,9 @@
<?php
namespace TestApp1\Multi\Yop;
class Rij
{
}

View File

@ -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(