Formatting cleanup
This commit is contained in:
parent
0026ca7470
commit
f666915536
@ -16,7 +16,7 @@
|
||||
/**
|
||||
* Example Controller Class
|
||||
*/
|
||||
class Welcome extends miniMVC\Controller {
|
||||
class welcome extends miniMVC\Controller {
|
||||
|
||||
/**
|
||||
* Initialize the constructor
|
||||
|
@ -23,7 +23,7 @@ class Welcome_Model extends miniMVC\Model{
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function __construct()
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
@ -21,10 +21,10 @@
|
||||
*/
|
||||
|
||||
//Get config files
|
||||
require('./config/config.php');
|
||||
require './config/config.php';
|
||||
|
||||
//Include the css groups
|
||||
$groups = require("./config/css_groups.php");
|
||||
$groups = require './config/css_groups.php';
|
||||
|
||||
//The name of this file
|
||||
$this_file = __FILE__;
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
//Get config files
|
||||
require('./config/config.php');
|
||||
require './config/config.php';
|
||||
|
||||
//Include the js groups
|
||||
$groups_file = "./config/js_groups.php";
|
||||
|
@ -21,7 +21,7 @@ namespace miniMVC;
|
||||
* @package miniMVC
|
||||
* @subpackage System
|
||||
*/
|
||||
class DB extends \Query_Builder {
|
||||
class db extends \Query_Builder {
|
||||
|
||||
/**
|
||||
* DB connection instances
|
||||
|
@ -5,32 +5,32 @@
|
||||
*/
|
||||
class commonTest extends UnitTestCase {
|
||||
|
||||
function __construct()
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('Common.php Tests');
|
||||
}
|
||||
|
||||
function setUp()
|
||||
public function setUp()
|
||||
{
|
||||
$this->empty = array();
|
||||
$this->object = new stdClass();
|
||||
$this->array_like = new stdClass(array('foo' => 'bar'));
|
||||
}
|
||||
|
||||
function tearDown()
|
||||
public function tearDown()
|
||||
{
|
||||
unset($this->empty);
|
||||
unset($this->object);
|
||||
unset($this->array_like);
|
||||
}
|
||||
|
||||
function testEmptyArrayNotLikeArray()
|
||||
public function testEmptyArrayNotLikeArray()
|
||||
{
|
||||
// Empty is not array like
|
||||
$this->assertFalse(miniMVC\is_like_array($this->empty));
|
||||
}
|
||||
|
||||
function testEmptyObjectIsLikeArray()
|
||||
public function testEmptyObjectIsLikeArray()
|
||||
{
|
||||
// Empty object is array like - because objects are truthy
|
||||
$this->assertTrue(miniMVC\is_like_array($this->object));
|
||||
|
@ -4,7 +4,7 @@
|
||||
define('ENVIRONMENT', 'DEVELOPMENT');
|
||||
|
||||
//Include simpletest
|
||||
require_once('simpletest/autorun.php');
|
||||
require_once 'simpletest/autorun.php';
|
||||
|
||||
// Set the default paths
|
||||
define('MM_SYS_PATH', '../sys/');
|
||||
@ -21,5 +21,5 @@ require_once(MM_SYS_PATH . 'db/tests/index.php');
|
||||
require_once(MM_SYS_PATH . 'common.php');
|
||||
|
||||
//Include test files
|
||||
require_once('commonTest.php');
|
||||
require_once 'commonTest.php';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user