Skip to content

Commit

Permalink
tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe Slattery committed May 9, 2012
1 parent 2e402b0 commit 1f01848
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 26 deletions.
16 changes: 9 additions & 7 deletions build.xml
Expand Up @@ -11,6 +11,15 @@
<delete dir="QA/sapi" />
<delete dir="QA/tests" />
<delete dir="QA/Zend" />
<delete>
<fileset dir="phpt-tests" includes="*.out" />
<fileset dir="phpt-tests" includes="*.exp" />
<fileset dir="phpt-tests" includes="*.diff" />
<fileset dir="phpt-tests" includes="*.log" />
<fileset dir="phpt-tests" includes="*.sh" />
<fileset dir="phpt-tests" includes="*.post" />
<fileset dir="phpt-tests" includes="*.php" />
</delete>
</target>

<target name="qa" depends="lint, test, coverage, compare, doc" description="Perform quality assurance.">
Expand All @@ -28,13 +37,6 @@
<include name="**/*.php"/>
</fileset>
</phplint>

<phplint haltonfailure="true">
<fileset dir="tests">
<include name="*.php"/>
<include name="**/*.php"/>
</fileset>
</phplint>
</target>

<target name="test" description="Run all unit tests.">
Expand Down
7 changes: 0 additions & 7 deletions phpt-tests/sample_clean.php

This file was deleted.

7 changes: 0 additions & 7 deletions phpt-tests/sample_clean_fail.php

This file was deleted.

2 changes: 1 addition & 1 deletion 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
4 changes: 2 additions & 2 deletions phpt-tests/sample_gzippost.phpt
Expand Up @@ -5,8 +5,8 @@ blahblah=blah
--FILE--
<?php
$content = file_get_contents('php://input');

if ($content != gzencode('blahblah=blah'))
$string = gzdecode($content);
if ($string != "blahblah=blah")
{
echo "invalid gzipped content";
} else {
Expand Down
3 changes: 3 additions & 0 deletions phpt-tests/utils/hw.php
@@ -0,0 +1,3 @@
<?php
echo "hello world\n";
?>
3 changes: 3 additions & 0 deletions phpt-tests/utils/hw.save
@@ -0,0 +1,3 @@
<?php
echo "hello world\n";
?>
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/testcase/rtCookieExecutionTest.php
Expand Up @@ -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';
}
Expand All @@ -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]);
Expand Down

0 comments on commit 1f01848

Please sign in to comment.