Skip to content

Commit

Permalink
Dir test added
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandKujundzic committed Apr 25, 2016
1 parent a3b018b commit d6f9ac6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
11 changes: 8 additions & 3 deletions test/Dir/run.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php

require_once(dirname(__DIR__).'/testlib.php');
require_once(dirname(dirname(__DIR__)).'/src/Dir.class.php');
global $th;

if (!isset($th)) {
require_once(dirname(dirname(__DIR__)).'/src/TestHelper.class.php');
$th = new rkphplib\TestHelper();
}


/**
Expand All @@ -25,5 +29,6 @@ function test_exists($path_list) {
}


call_test('test_exists', array('/etc', '/etc/apache2', '/var/lib/mysql'), array('Dir::exits()', 1, 1, 0));
$th->load('src/Dir.class.php');
$th->callTest('test_exists', array('/etc', '/etc/apache2', '/var/lib/mysql'), array('Dir::exits()', 1, 1, 0));

5 changes: 2 additions & 3 deletions test/run.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
$th->runTest('lib_replace_tags/run.php');
$th->runTest('DateTime/run.php');
$th->runTest('Tokenizer/run.php');
$th->runTest('Dir/run.php');
$th->runTest('TBase/run.php'); // ToDo: track exception as ok
$th->result();

/* ToDo ...
// run_test('Dir/run.php');
// ToDo ...
// run_test('MysqlDatabase/run.php');
*/

0 comments on commit d6f9ac6

Please sign in to comment.