Skip to content
Snippets Groups Projects
Commit be0b6542 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Removed commented code from test index.

parent 9468e05b
No related branches found
No related tags found
No related merge requests found
<?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
include_once '../../simpletest/autorun.php';
include_once '../pquery.config.php';
include_once 'config.php';
include_once PQUERY_ROOT.'pquery.php';
function is_test_file($filename) {
......@@ -11,16 +11,4 @@ function is_test_file($filename) {
foreach( array_filter(scandir('.'), 'is_test_file') as $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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment