From 1f01848175285c6c830eb039abf60b654e29cb6b Mon Sep 17 00:00:00 2001 From: Zoe Slattery Date: Wed, 9 May 2012 16:26:29 +0000 Subject: [PATCH] tidying up --- build.xml | 16 +++++++++------- phpt-tests/sample_clean.php | 7 ------- phpt-tests/sample_clean_fail.php | 7 ------- phpt-tests/sample_fileexternal.phpt | 2 +- phpt-tests/sample_gzippost.phpt | 4 ++-- phpt-tests/utils/hw.php | 3 +++ phpt-tests/utils/hw.save | 3 +++ phpt-tests/{ => utils}/windows_line_endings.php | 0 tests/testcase/rtCookieExecutionTest.php | 4 ++-- 9 files changed, 20 insertions(+), 26 deletions(-) delete mode 100644 phpt-tests/sample_clean.php delete mode 100644 phpt-tests/sample_clean_fail.php create mode 100644 phpt-tests/utils/hw.php create mode 100644 phpt-tests/utils/hw.save rename phpt-tests/{ => utils}/windows_line_endings.php (100%) diff --git a/build.xml b/build.xml index 4f3294c..cb5cbd2 100755 --- a/build.xml +++ b/build.xml @@ -11,6 +11,15 @@ + + + + + + + + + @@ -28,13 +37,6 @@ - - - - - - - diff --git a/phpt-tests/sample_clean.php b/phpt-tests/sample_clean.php deleted file mode 100644 index 095448f..0000000 --- a/phpt-tests/sample_clean.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/phpt-tests/sample_clean_fail.php b/phpt-tests/sample_clean_fail.php deleted file mode 100644 index 095448f..0000000 --- a/phpt-tests/sample_clean_fail.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/phpt-tests/sample_fileexternal.phpt b/phpt-tests/sample_fileexternal.phpt index 324ca04..1371f40 100644 --- a/phpt-tests/sample_fileexternal.phpt +++ b/phpt-tests/sample_fileexternal.phpt @@ -1,6 +1,6 @@ --TEST-- sample test for file_external --FILE_EXTERNAL-- -hw.php +utils/hw.php --EXPECT-- hello world diff --git a/phpt-tests/sample_gzippost.phpt b/phpt-tests/sample_gzippost.phpt index 3dbe67c..432b4a1 100644 --- a/phpt-tests/sample_gzippost.phpt +++ b/phpt-tests/sample_gzippost.phpt @@ -5,8 +5,8 @@ blahblah=blah --FILE-- diff --git a/phpt-tests/utils/hw.save b/phpt-tests/utils/hw.save new file mode 100644 index 0000000..32f8f4e --- /dev/null +++ b/phpt-tests/utils/hw.save @@ -0,0 +1,3 @@ + diff --git a/phpt-tests/windows_line_endings.php b/phpt-tests/utils/windows_line_endings.php similarity index 100% rename from phpt-tests/windows_line_endings.php rename to phpt-tests/utils/windows_line_endings.php diff --git a/tests/testcase/rtCookieExecutionTest.php b/tests/testcase/rtCookieExecutionTest.php index c2148a1..3ac5280 100644 --- a/tests/testcase/rtCookieExecutionTest.php +++ b/tests/testcase/rtCookieExecutionTest.php @@ -12,7 +12,7 @@ public function setUp() { $this->php = trim(shell_exec("which php")); $this->php_cgi = trim(shell_exec("which php-cgi")); - + $this->path_to_tests = realpath(dirname(__FILE__) . '/../../phpt-tests'); $this->sample_test = $this->path_to_tests . '/sample_cookie.phpt'; } @@ -31,7 +31,7 @@ public function testFileRun() //Retrieve the array of test file names $testFiles = $config->getSetting('TestFiles'); - + //Read the test file $testFile = new rtPhpTestFile(); $testFile->doRead($testFiles[0]);