made namespace autoloader test more realistic.
This commit is contained in:
parent
e0188f70c5
commit
7fa80bcdba
|
@ -93,7 +93,7 @@ public function testHardcodedClassesCanBeLoaded()
|
||||||
public function testClassesMappedByNamespaceCanBeLoaded()
|
public function testClassesMappedByNamespaceCanBeLoaded()
|
||||||
{
|
{
|
||||||
Autoloader::namespaces(array(
|
Autoloader::namespaces(array(
|
||||||
'Dashboard' => APP_PATH.'dashboard',
|
'Dashboard' => BUNDLE_PATH.'dashboard'.DS.'models',
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->assertInstanceOf('Dashboard\\Repository', new Dashboard\Repository);
|
$this->assertInstanceOf('Dashboard\\Repository', new Dashboard\Repository);
|
||||||
|
|
|
@ -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 {}
|
Loading…
Reference in New Issue