1
0
mirror of https://github.com/danog/class-finder.git synced 2025-01-22 13:51:42 +01:00

Add test confirming loading classes from a 3rd party packages works.

This commit is contained in:
Hayden Pierce 2018-09-11 20:26:46 -05:00
parent 8bf7e0fb4e
commit c161c74a97

View File

@ -45,6 +45,26 @@ class ClassmapTest extends \PHPUnit_Framework_TestCase
'TestApp1\ClassmapClasses\Tir'
),
'Classfinder should be able to load classes based on a classmap.'
),
array(
'HaydenPierce\Classmap',
array(
'HaydenPierce\Classmap\Classmap2ClassmapINC',
'HaydenPierce\Classmap\Classmap2ClassmapPHP',
'HaydenPierce\Classmap\Classmap3ClassesPHP',
'HaydenPierce\Classmap\ClassmapClassmap2PHP'
),
'Classfinder should be able to load classes based on a classmap from 3rd party packages.'
),
array(
'HaydenPierce\Classmap2',
array(
'HaydenPierce\Classmap2\Classmap2ClassmapINC',
'HaydenPierce\Classmap2\Classmap2ClassmapPHP',
'HaydenPierce\Classmap2\Classmap3ClassesPHP',
'HaydenPierce\Classmap2\ClassmapClassmap2PHP'
),
'Classfinder should be able to handle multiple namespaces in a single file for a classmap.'
)
);
}