PHP Classes

File: unit-test.php

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   unit-test.php   Download  
File: unit-test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 534 bytes
 

Contents

Class file image Download
<?php

/**
 * Run unit-test with command
 * phpunit --configuration="Application/Setting/phpunit.xml" -v
 *
 */
define('SIMPLE_APP', true);
define('APP_DS', DIRECTORY_SEPARATOR);
define('APP_ROOT_PATH', dirname(__FILE__) . APP_DS);
define('APP_PATH', APP_ROOT_PATH . "Application" . APP_DS);
define('APP_PATH_SETTING', APP_PATH . 'Setting' . APP_DS);
define('APP_PATH_LIB', APP_ROOT_PATH . 'Library' . APP_DS);
require_once
APP_PATH_SETTING . 'Loader.php';
$_CONF['unit_test'] = true;
$mainApp = new APP\Engine\Application($_CONF);