From c161c74a97aa01d072b9807be790d252079e8b85 Mon Sep 17 00:00:00 2001 From: Hayden Pierce Date: Tue, 11 Sep 2018 20:26:46 -0500 Subject: [PATCH] Add test confirming loading classes from a 3rd party packages works. --- test/app1/src/ClassmapTest.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/app1/src/ClassmapTest.php b/test/app1/src/ClassmapTest.php index 5cb0a7d..2ae99dc 100644 --- a/test/app1/src/ClassmapTest.php +++ b/test/app1/src/ClassmapTest.php @@ -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.' ) ); }