made namespace autoloader test more realistic.

This commit is contained in:
Taylor Otwell 2012-01-18 14:28:02 -06:00
parent e0188f70c5
commit 7fa80bcdba
2 changed files with 8 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public function testHardcodedClassesCanBeLoaded()
public function testClassesMappedByNamespaceCanBeLoaded()
{
Autoloader::namespaces(array(
'Dashboard' => APP_PATH.'dashboard',
'Dashboard' => BUNDLE_PATH.'dashboard'.DS.'models',
));
$this->assertInstanceOf('Dashboard\\Repository', new Dashboard\Repository);

View File

@ -0,0 +1,7 @@
<?php namespace Dashboard;
/**
* This class is used for testing the auto-loading of classes
* that are mapped by namesapce.
*/
class Repository {}