Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pquery
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
pquery
Commits
be0b6542
Commit
be0b6542
authored
13 years ago
by
Taddeus Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Removed commented code from test index.
parent
9468e05b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/config.php
+37
-0
37 additions, 0 deletions
test/config.php
test/index.php
+1
-13
1 addition, 13 deletions
test/index.php
with
38 additions
and
13 deletions
test/config.php
0 → 100644
+
37
−
0
View file @
be0b6542
<?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
This diff is collapsed.
Click to expand it.
test/index.php
+
1
−
13
View file @
be0b6542
<?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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment