Commit be0b6542 authored by Taddeus Kroes's avatar Taddeus Kroes

Removed commented code from test index.

parent 9468e05b
<?php
/**
* Base and plugin config for pQuery utility framework.
*
* @package pQuery
*/
/**
* Indicates whether the framework is in debug mode, which right
* now only means that occuring errors will be displayed or not.
*
* @var bool
*/
define('DEBUG', true);
/**
* The root location of the pQuery framework folder, used for file
* inclusions. The path is absolute and should end with a slash ('/').
*
* @var string
*/
define('PQUERY_ROOT', 'D:/xampp/htdocs/pquery/');
/**
* Abstract class containing plugin configs.
*/
abstract class pQueryConfig {
/**
* Indicates whether errors occuring in the framework will
* terminate the script.
*
* @var bool
*/
const ERROR_IS_FATAL = true;
}
?>
\ No newline at end of file
<?php <?php
include_once '../../simpletest/autorun.php'; include_once '../../simpletest/autorun.php';
include_once '../pquery.config.php'; include_once 'config.php';
include_once PQUERY_ROOT.'pquery.php'; include_once PQUERY_ROOT.'pquery.php';
function is_test_file($filename) { function is_test_file($filename) {
...@@ -11,16 +11,4 @@ function is_test_file($filename) { ...@@ -11,16 +11,4 @@ function is_test_file($filename) {
foreach( array_filter(scandir('.'), 'is_test_file') as $file ) foreach( array_filter(scandir('.'), 'is_test_file') as $file )
include_once $file; include_once $file;
//include_once '../pquery.php';
//__p::require_plugins('array', 'sql', 'template');
// SQL test
/*include_once '../../debug.php';
$sql = _sql("select * from posts where slug = '[slug]'")
->set(array('slug' => 'contact'));
$results = $sql->fetch_all('object');
$results = _arr($results);
debug($results);*/
?> ?>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment