Permalink
Browse files

FIX PHPUnit wrong configuration.

  • Loading branch information...
1 parent 4f4fd0c commit 4064c1a2de13b934cf30d69f4d000a64d6c0a1b0 @PSF1 committed Mar 5, 2016
View
@@ -1,4 +1,5 @@
/bin/node_type/addNodeField.sec
/notas.txt
/etc/hookHandlers.inc
-/etc/hookOfenders.inc
+/etc/hookOfenders.inc
+/etc/pharinix.config.php
@@ -27,7 +27,7 @@ class commandAccessTest extends PHPUnit_Framework_TestCase {
*/
protected function setUp() {
// include_once 'commandTools.php';
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -27,7 +27,7 @@ class commandBatchTest extends PHPUnit_Framework_TestCase {
*/
protected function setUp() {
// include_once 'commandTools.php';
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -23,7 +23,7 @@ class commandNodesAccessTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
// error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -23,7 +23,7 @@ class commandNodesQueryTest extends PHPUnit_Framework_TestCase {
protected function setUp() {
// include_once 'commandTools.php';
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -23,7 +23,7 @@ class commandNodesTest extends PHPUnit_Framework_TestCase {
protected function setUp() {
// include_once 'commandTools.php';
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -27,7 +27,7 @@ class commandRewriteURLTest extends PHPUnit_Framework_TestCase {
*/
protected function setUp() {
// include_once 'commandTools.php';
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -26,7 +26,7 @@ class commandTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
// error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
// include_once 'commandTools.php';
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -27,7 +27,7 @@ class commandsCaptureTest extends PHPUnit_Framework_TestCase {
*/
protected function setUp() {
// include_once 'commandTools.php';
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -26,7 +26,7 @@ class hookTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
// error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
// include_once 'commandTools.php';
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -23,7 +23,7 @@ class driverToolsTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
// error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -26,7 +26,7 @@ class iniFilesTest extends PHPUnit_Framework_TestCase {
* This method is called before a test is executed.
*/
protected function setUp() {
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -22,7 +22,7 @@
class longProcessMonitorTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -25,7 +25,7 @@ class modulesTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
// error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
// include_once 'commandTools.php';
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -25,7 +25,7 @@ class routingTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
// error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
// include_once 'commandTools.php';
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -22,7 +22,7 @@
class userAuthTokenTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -22,7 +22,7 @@
class userCommandsTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -23,7 +23,7 @@ class userPermissionsTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
- while (!is_file("etc/pharinix.config.php")) {
+ while (!is_file("etc/pharinix.config.DEFAULT.php")) {
chdir("../");
}
include_once 'tests/drivers/etc/bootstrap.php';
@@ -23,6 +23,10 @@
$_SERVER["HTTP_HOST"] = "localhost";
phpInfo();
}
+// Build default configuration file
+if (!is_file('etc/pharinix.config.php')) {
+ copy('etc/pharinix.config.DEFAULT.php', 'etc/pharinix.config.php');
+}
// Requires
include_once("etc/drivers/tools.php");
include_once('etc/drivers/txtlog.php');
@@ -4,7 +4,7 @@
* @author Pedro Peláez <aaaaa976@gmail.com>
* @since 2014.11.24
*/
-//while (!is_file("etc/pharinix.config.php")) {
+//while (!is_file("etc/pharinix.config.DEFAULT.php")) {
// chdir("../");
//}
//include_once 'tests/drivers/etc/bootstrap.php';

0 comments on commit 4064c1a

Please sign in to comment.