made namespace autoloader test more realistic.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
7
tests/laravel/bundles/dashboard/models/repository.php
Normal file
7
tests/laravel/bundles/dashboard/models/repository.php
Normal 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 {}
|
||||||
Reference in New Issue
Block a user