Import testing bundle to laravel/tests directory.

This commit is contained in:
Franz Liedke
2012-07-13 00:14:03 +02:00
parent 1879e6575a
commit a7c211339a
78 changed files with 6335 additions and 12 deletions

0
laravel/tests/bundles/.gitignore vendored Normal file
View File

View File

@@ -0,0 +1,7 @@
<?php
return array(
'bundle' => 'dashboard',
);

View File

@@ -0,0 +1,10 @@
<?php
class Dashboard_Panel_Controller extends Controller {
public function action_index()
{
return 'Dashboard_Panel_Index';
}
}

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 {}

View File

@@ -0,0 +1,8 @@
<?php
Route::get('dashboard', array('as' => 'dashboard', function()
{
//
}));
Route::controller('dashboard::panel');

View File

@@ -0,0 +1,6 @@
<?php
if (isset($_SERVER['bundle.dummy.routes']))
{
$_SERVER['bundle.dummy.routes']++;
}

View File

@@ -0,0 +1,3 @@
<?php
$_SERVER['bundle.dummy.start']++;