Skip to content
Browse files

Add to for the autoloaders register() method.

  • Loading branch information...
1 parent efee5b6 commit 7a15e5d9fee7cfb51cd7e799c3aed8356253ab95 @trq trq committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 tests/lib/Proem/Tests/Loader/AutoloaderTest.php
View
13 tests/lib/Proem/Tests/Loader/AutoloaderTest.php
@@ -20,6 +20,19 @@ public function testLoad($className, $testClassName, $message)
$this->assertTrue(class_exists($className), $message);
}
+ /**
+ * @dataProvider getData
+ */
+ public function testRegister($className, $testClassName, $message)
+ {
+ (new AutoLoader())
+ ->registerNamespace('Namespaced', __DIR__ . '/Fixtures')
+ ->registerPearPrefix('Pear_', __DIR__ . '/Fixtures')
+ ->register();
+
+ $this->assertTrue(class_exists($className), $message);
+ }
+
public function getData()
{
return [

0 comments on commit 7a15e5d

Please sign in to comment.
Something went wrong with that request. Please try again.