Commit 7fa80bcd authored by Taylor Otwell's avatar Taylor Otwell

made namespace autoloader test more realistic.

parent e0188f70
...@@ -93,7 +93,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase { ...@@ -93,7 +93,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
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);
......
<?php namespace Dashboard;
/**
* This class is used for testing the auto-loading of classes
* that are mapped by namesapce.
*/
class Repository {}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment