added foundation of testing setup.
This commit is contained in:
42
tests/laravel/bundle.php
Normal file
42
tests/laravel/bundle.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto-Loader PSR-0 Directories
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The Laravel auto-loader can search directories for files using the PSR-0
|
||||
| naming convention. This convention basically organizes classes by using
|
||||
| the class namespace to indicate the directory structure.
|
||||
|
|
||||
| So you don't have to manually map all of your models, we've added the
|
||||
| models and libraries directories for you. So, you can model away and
|
||||
| the auto-loader will take care of the rest.
|
||||
|
|
||||
*/
|
||||
|
||||
Autoloader::psr(array(
|
||||
APP_PATH.'models',
|
||||
APP_PATH.'libraries',
|
||||
));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto-Loader Mappings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Laravel uses a simple array of class to path mappings to drive the class
|
||||
| auto-loader. This simple approach helps avoid the performance problems
|
||||
| of searching through directories by some kind of convention. It also
|
||||
| gives you the freedom to organize your application how you want.
|
||||
|
|
||||
| Registering a mapping couldn't be easier. Just pass an array of class
|
||||
| to path maps into the "map" function of Autoloader. Then, when you
|
||||
| want to use that class, just use it. It's a piece of cake.
|
||||
|
|
||||
*/
|
||||
|
||||
Autoloader::map(array(
|
||||
//'User' => APP_PATH.'models/user.php',
|
||||
//'Role' => APP_PATH.'models/role.php',
|
||||
));
|
||||
Reference in New Issue
Block a user