summaryrefslogtreecommitdiff
path: root/tests/UnitTests/simpletest/test/unit_tester_test.php
diff options
context:
space:
mode:
authorwei <>2006-04-14 06:22:09 +0000
committerwei <>2006-04-14 06:22:09 +0000
commit3d3f8d3832921f99daf8ce1953304763c2e76c62 (patch)
treee1b0a9bc3a13fccd253770fb452ac96cc6315121 /tests/UnitTests/simpletest/test/unit_tester_test.php
parent373d8acc503b94ea09823f49e2ab5e395eccc584 (diff)
Importing SQLMap + sample + docs.
Diffstat (limited to 'tests/UnitTests/simpletest/test/unit_tester_test.php')
-rw-r--r--tests/UnitTests/simpletest/test/unit_tester_test.php52
1 files changed, 0 insertions, 52 deletions
diff --git a/tests/UnitTests/simpletest/test/unit_tester_test.php b/tests/UnitTests/simpletest/test/unit_tester_test.php
deleted file mode 100644
index a6a61f8d..00000000
--- a/tests/UnitTests/simpletest/test/unit_tester_test.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
- // $Id: unit_tester_test.php,v 1.3 2005/02/18 22:40:58 lastcraft Exp $
-
- class TestOfUnitTester extends UnitTestCase {
-
- function testAssertTrueReturnsAssertionAsBoolean() {
- $this->assertTrue($this->assertTrue(true));
- }
-
- function testAssertFalseReturnsAssertionAsBoolean() {
- $this->assertTrue($this->assertFalse(false));
- }
-
- function testAssertEqualReturnsAssertionAsBoolean() {
- $this->assertTrue($this->assertEqual(5, 5));
- }
-
- function testAssertIdenticalReturnsAssertionAsBoolean() {
- $this->assertTrue($this->assertIdentical(5, 5));
- }
-
- function testCoreAssertionsDoNotThrowErrors() {
- $this->assertIsA($this, 'UnitTestCase');
- $this->assertNotA($this, 'WebTestCase');
- }
- }
-
- class JBehaveStyleRunner extends SimpleRunner {
- function JBehaveStyleRunner(&$test_case, &$scorer) {
- $this->SimpleRunner($test_case, $scorer);
- }
-
- function _isTest($method) {
- return strtolower(substr($method, 0, 6)) == 'should';
- }
- }
-
- class TestOfJBehaveStyleRunner extends UnitTestCase {
-
- function &_createRunner(&$reporter) {
- return new JBehaveStyleRunner($this, $reporter);
- }
-
- function testFail() {
- $this->fail('This should not be run');
- }
-
- function shouldBeRun() {
- $this->pass('This should be run');
- }
- }
-?> \ No newline at end of file