<?php
spl_autoload_register(function($c) {
- if (substr($c, 0, 10) === "pq\\Gateway" || substr($c, 0, 8) === "pq\\Query") {
+ if (substr($c, 0, 11) === "pq\\Gateway\\" || substr($c, 0, 9) === "pq\\Query\\" || substr($c, 0, 10) === "pq\\Mapper\\") {
return include __DIR__ . "/" . strtr($c, "\\", "/") . ".php";
}
});
namespace pq\Gateway;
-include __DIR__."/../../../setup.inc";
+require_once __DIR__."/../../../setup.inc";
class CellTest extends \PHPUnit_Framework_TestCase {
namespace pq\Gateway;
-include_once __DIR__."/../../../setup.inc";
+require_once __DIR__."/../../../setup.inc";
class RowTest extends \PHPUnit_Framework_TestCase {
namespace pq\Gateway;
-include_once __DIR__."/../../../setup.inc";
+require_once __DIR__."/../../../setup.inc";
class RowsetTest extends \PHPUnit_Framework_TestCase {
namespace pq\Gateway;
-include_once __DIR__."/../../../setup.inc";
+require_once __DIR__."/../../../setup.inc";
class TableTest extends \PHPUnit_Framework_TestCase {
namespace pq\Query;
-include_once __DIR__."/../../../setup.inc";
+require_once __DIR__."/../../../setup.inc";
use pq\Connection;
use React\Promise\Deferred as Reacted;