Skip to content

Commit

Permalink
fixed tests to run in the new directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
poef committed Jun 21, 2014
1 parent 0780b74 commit 0762418
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions tests/bootstrap.php
@@ -1,6 +1,7 @@
<?php

error_reporting(E_ALL|E_STRICT);
include_once( __DIR__ . '/../../../autoload.php'); // arc/arc autoloader
require_once( __DIR__ . '/../autoload.php');
// require_once( __DIR__ . '/vendor/autoload.php');

Expand Down
2 changes: 1 addition & 1 deletion tests/test.hash.php
Expand Up @@ -10,7 +10,7 @@
* file that was distributed with this source code.
*/

require_once( __DIR__ . 'bootstrap.php' );
require_once( __DIR__ . DIRECTORY_SEPARATOR . 'bootstrap.php' );

class TestHash extends UnitTestCase {

Expand Down
2 changes: 1 addition & 1 deletion tests/test.lambda.php
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

require_once( __DIR__.'bootstrap.php' );
require_once( __DIR__ . DIRECTORY_SEPARATOR . 'bootstrap.php' );

class TestLambda extends UnitTestCase {

Expand Down
2 changes: 1 addition & 1 deletion tests/test.path.php
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

require_once( __DIR__ . 'bootstrap.php' );
require_once( __DIR__ . DIRECTORY_SEPARATOR . 'bootstrap.php' );

class TestPath extends UnitTestCase {

Expand Down
2 changes: 1 addition & 1 deletion tests/test.template.php
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

require_once( __DIR__.'bootstrap.php' );
require_once( __DIR__ . DIRECTORY_SEPARATOR .'bootstrap.php' );

class TestTemplate extends UnitTestCase {

Expand Down
2 changes: 1 addition & 1 deletion tests/test.tree.php
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

require_once( __DIR__ . 'bootstrap.php' );
require_once( __DIR__ . DIRECTORY_SEPARATOR . 'bootstrap.php' );

class TestTree extends UnitTestCase {

Expand Down
4 changes: 2 additions & 2 deletions tests/testall.php
Expand Up @@ -3,7 +3,7 @@

$files = scandir( __DIR__ );
foreach ( $files as $file ) {
if( is_file( __DIR__ . $file ) && preg_match( '/\btest\..*\.php/', basename( __DIR__ . $file ) ) ) {
include( __DIR__ . $file );
if ( is_file( __DIR__ . DIRECTORY_SEPARATOR . $file ) && preg_match( '/^test\..*\.php$/i', $file ) ) {
include( __DIR__ . DIRECTORY_SEPARATOR . $file );
}
}

0 comments on commit 0762418

Please sign in to comment.