projects
/
m6w6
/
pq-gateway
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
0dde7cd
)
fix includes
author
Michael Wallner
<mike@php.net>
Tue, 22 Sep 2015 08:54:01 +0000
(10:54 +0200)
committer
Michael Wallner
<mike@php.net>
Tue, 22 Sep 2015 08:54:01 +0000
(10:54 +0200)
lib/autoload.php
patch
|
blob
|
history
tests/lib/pq/Gateway/CellTest.php
patch
|
blob
|
history
tests/lib/pq/Gateway/RowTest.php
patch
|
blob
|
history
tests/lib/pq/Gateway/RowsetTest.php
patch
|
blob
|
history
tests/lib/pq/Gateway/TableTest.php
patch
|
blob
|
history
tests/lib/pq/Query/AsyncExecutorTest.php
patch
|
blob
|
history
diff --git
a/lib/autoload.php
b/lib/autoload.php
index cc5e906a728feaf3fa3e9fa836d2e375af63c2c2..e45fd2c81c3f3b711ca69c7cf8630be7a3cef99f 100644
(file)
--- a/
lib/autoload.php
+++ b/
lib/autoload.php
@@
-1,7
+1,7
@@
<?php
spl_autoload_register(function($c) {
<?php
spl_autoload_register(function($c) {
- if (substr($c, 0, 1
0) === "pq\\Gateway" || substr($c, 0, 8) === "pq\\Query
") {
+ if (substr($c, 0, 1
1) === "pq\\Gateway\\" || substr($c, 0, 9) === "pq\\Query\\" || substr($c, 0, 10) === "pq\\Mapper\\
") {
return include __DIR__ . "/" . strtr($c, "\\", "/") . ".php";
}
});
return include __DIR__ . "/" . strtr($c, "\\", "/") . ".php";
}
});
diff --git
a/tests/lib/pq/Gateway/CellTest.php
b/tests/lib/pq/Gateway/CellTest.php
index 35ee6a072504e03d2d5a22b3dd6ffbd9345aac7c..f18163ad004d6c0c390646b871abd08420d9f150 100644
(file)
--- a/
tests/lib/pq/Gateway/CellTest.php
+++ b/
tests/lib/pq/Gateway/CellTest.php
@@
-2,7
+2,7
@@
namespace pq\Gateway;
namespace pq\Gateway;
-
includ
e __DIR__."/../../../setup.inc";
+
require_onc
e __DIR__."/../../../setup.inc";
class CellTest extends \PHPUnit_Framework_TestCase {
class CellTest extends \PHPUnit_Framework_TestCase {
diff --git
a/tests/lib/pq/Gateway/RowTest.php
b/tests/lib/pq/Gateway/RowTest.php
index bee2dbe9bf36262ae055353a0fa2096f4890d8e2..4d539a054d9ba5ae116080134a1e867e042758c0 100644
(file)
--- a/
tests/lib/pq/Gateway/RowTest.php
+++ b/
tests/lib/pq/Gateway/RowTest.php
@@
-2,7
+2,7
@@
namespace pq\Gateway;
namespace pq\Gateway;
-
includ
e_once __DIR__."/../../../setup.inc";
+
requir
e_once __DIR__."/../../../setup.inc";
class RowTest extends \PHPUnit_Framework_TestCase {
class RowTest extends \PHPUnit_Framework_TestCase {
diff --git
a/tests/lib/pq/Gateway/RowsetTest.php
b/tests/lib/pq/Gateway/RowsetTest.php
index 61f6b11af4668fa1b30c8e8566b47eba8de6cfa9..84981a61dc591047dac7010c144dbbacaf49f93b 100644
(file)
--- a/
tests/lib/pq/Gateway/RowsetTest.php
+++ b/
tests/lib/pq/Gateway/RowsetTest.php
@@
-2,7
+2,7
@@
namespace pq\Gateway;
namespace pq\Gateway;
-
includ
e_once __DIR__."/../../../setup.inc";
+
requir
e_once __DIR__."/../../../setup.inc";
class RowsetTest extends \PHPUnit_Framework_TestCase {
class RowsetTest extends \PHPUnit_Framework_TestCase {
diff --git
a/tests/lib/pq/Gateway/TableTest.php
b/tests/lib/pq/Gateway/TableTest.php
index 03f71f783e36c000c767beffe484804c639b6ff1..c9bf19f5977f2ef5adb5488010a08e8e1db8c7e7 100644
(file)
--- a/
tests/lib/pq/Gateway/TableTest.php
+++ b/
tests/lib/pq/Gateway/TableTest.php
@@
-2,7
+2,7
@@
namespace pq\Gateway;
namespace pq\Gateway;
-
includ
e_once __DIR__."/../../../setup.inc";
+
requir
e_once __DIR__."/../../../setup.inc";
class TableTest extends \PHPUnit_Framework_TestCase {
class TableTest extends \PHPUnit_Framework_TestCase {
diff --git
a/tests/lib/pq/Query/AsyncExecutorTest.php
b/tests/lib/pq/Query/AsyncExecutorTest.php
index ad68a914ce89d2b762e69759ba5c0d3a11fbe325..9a913e5771c388c58c48af04ad59f5c6e7024d7e 100644
(file)
--- a/
tests/lib/pq/Query/AsyncExecutorTest.php
+++ b/
tests/lib/pq/Query/AsyncExecutorTest.php
@@
-2,7
+2,7
@@
namespace pq\Query;
namespace pq\Query;
-
includ
e_once __DIR__."/../../../setup.inc";
+
requir
e_once __DIR__."/../../../setup.inc";
use pq\Connection;
use React\Promise\Deferred as Reacted;
use pq\Connection;
use React\Promise\Deferred as Reacted;