Formatting cleanup

This commit is contained in:
Timothy Warren 2012-07-12 10:23:55 -04:00
parent 0026ca7470
commit f666915536
20 changed files with 110 additions and 110 deletions

View File

@ -16,7 +16,7 @@
/** /**
* Example Controller Class * Example Controller Class
*/ */
class Welcome extends miniMVC\Controller { class welcome extends miniMVC\Controller {
/** /**
* Initialize the constructor * Initialize the constructor

View File

@ -23,7 +23,7 @@ class Welcome_Model extends miniMVC\Model{
* *
* @return void * @return void
*/ */
function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
} }

View File

@ -21,10 +21,10 @@
*/ */
//Get config files //Get config files
require('./config/config.php'); require './config/config.php';
//Include the css groups //Include the css groups
$groups = require("./config/css_groups.php"); $groups = require './config/css_groups.php';
//The name of this file //The name of this file
$this_file = __FILE__; $this_file = __FILE__;

View File

@ -21,7 +21,7 @@
*/ */
//Get config files //Get config files
require('./config/config.php'); require './config/config.php';
//Include the js groups //Include the js groups
$groups_file = "./config/js_groups.php"; $groups_file = "./config/js_groups.php";

View File

@ -21,7 +21,7 @@ namespace miniMVC;
* @package miniMVC * @package miniMVC
* @subpackage System * @subpackage System
*/ */
class DB extends \Query_Builder { class db extends \Query_Builder {
/** /**
* DB connection instances * DB connection instances

View File

@ -5,32 +5,32 @@
*/ */
class commonTest extends UnitTestCase { class commonTest extends UnitTestCase {
function __construct() public function __construct()
{ {
parent::__construct('Common.php Tests'); parent::__construct('Common.php Tests');
} }
function setUp() public function setUp()
{ {
$this->empty = array(); $this->empty = array();
$this->object = new stdClass(); $this->object = new stdClass();
$this->array_like = new stdClass(array('foo' => 'bar')); $this->array_like = new stdClass(array('foo' => 'bar'));
} }
function tearDown() public function tearDown()
{ {
unset($this->empty); unset($this->empty);
unset($this->object); unset($this->object);
unset($this->array_like); unset($this->array_like);
} }
function testEmptyArrayNotLikeArray() public function testEmptyArrayNotLikeArray()
{ {
// Empty is not array like // Empty is not array like
$this->assertFalse(miniMVC\is_like_array($this->empty)); $this->assertFalse(miniMVC\is_like_array($this->empty));
} }
function testEmptyObjectIsLikeArray() public function testEmptyObjectIsLikeArray()
{ {
// Empty object is array like - because objects are truthy // Empty object is array like - because objects are truthy
$this->assertTrue(miniMVC\is_like_array($this->object)); $this->assertTrue(miniMVC\is_like_array($this->object));

View File

@ -4,7 +4,7 @@
define('ENVIRONMENT', 'DEVELOPMENT'); define('ENVIRONMENT', 'DEVELOPMENT');
//Include simpletest //Include simpletest
require_once('simpletest/autorun.php'); require_once 'simpletest/autorun.php';
// Set the default paths // Set the default paths
define('MM_SYS_PATH', '../sys/'); 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'); require_once(MM_SYS_PATH . 'common.php');
//Include test files //Include test files
require_once('commonTest.php'); require_once 'commonTest.php';