diff options
author | wei <> | 2006-04-14 05:14:34 +0000 |
---|---|---|
committer | wei <> | 2006-04-14 05:14:34 +0000 |
commit | 7949f7fe746dbbe3eeefbc123bbb2c551b091733 (patch) | |
tree | 3880a5fbad51a2c9aca5ab5c5dc5b01f1a8f2da6 /tests/UnitTests/simpletest/test/shell_test.php | |
parent | 9e21d160ead61cd0ed86c16a0668c50b14f58baf (diff) |
Fixed #93 and #121
Diffstat (limited to 'tests/UnitTests/simpletest/test/shell_test.php')
-rw-r--r-- | tests/UnitTests/simpletest/test/shell_test.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/UnitTests/simpletest/test/shell_test.php b/tests/UnitTests/simpletest/test/shell_test.php deleted file mode 100644 index 7d5631a3..00000000 --- a/tests/UnitTests/simpletest/test/shell_test.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php
- // $Id: shell_test.php,v 1.8 2004/09/24 22:55:18 lastcraft Exp $
-
- require_once(dirname(__FILE__) . '/../shell_tester.php');
-
- class TestOfShell extends UnitTestCase {
-
- function testEcho() {
- $shell = &new SimpleShell();
- $this->assertIdentical($shell->execute('echo Hello'), 0);
- $this->assertWantedPattern('/Hello/', $shell->getOutput());
- }
-
- function testBadCommand() {
- $shell = &new SimpleShell();
- $this->assertNotEqual($ret = $shell->execute('blurgh! 2>&1'), 0);
- }
- }
-
- class TestOfShellTesterAndShell extends ShellTestCase {
-
- function testEcho() {
- $this->assertTrue($this->execute('echo Hello'));
- $this->assertExitCode(0);
- $this->assertoutput('Hello');
- }
-
- function testFileExistence() {
- $this->assertFileExists(dirname(__FILE__) . '/all_tests.php');
- $this->assertFileNotExists('wibble');
- }
-
- function testFilePatterns() {
- $this->assertFilePattern('/all_tests/i', dirname(__FILE__) . '/all_tests.php');
- $this->assertNoFilePattern('/sputnik/i', dirname(__FILE__) . '/all_tests.php');
- }
- }
-?>
\ No newline at end of file |