summaryrefslogtreecommitdiffstats
path: root/3rdparty/simpletest/test/simpletest_test.php
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/simpletest/test/simpletest_test.php')
-rw-r--r--3rdparty/simpletest/test/simpletest_test.php58
1 files changed, 0 insertions, 58 deletions
diff --git a/3rdparty/simpletest/test/simpletest_test.php b/3rdparty/simpletest/test/simpletest_test.php
deleted file mode 100644
index daa65c6f472..00000000000
--- a/3rdparty/simpletest/test/simpletest_test.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-// $Id: simpletest_test.php 1748 2008-04-14 01:50:41Z lastcraft $
-require_once(dirname(__FILE__) . '/../autorun.php');
-require_once(dirname(__FILE__) . '/../simpletest.php');
-
-SimpleTest::ignore('ShouldNeverBeRunEither');
-
-class ShouldNeverBeRun extends UnitTestCase {
- function testWithNoChanceOfSuccess() {
- $this->fail('Should be ignored');
- }
-}
-
-class ShouldNeverBeRunEither extends ShouldNeverBeRun { }
-
-class TestOfStackTrace extends UnitTestCase {
-
- function testCanFindAssertInTrace() {
- $trace = new SimpleStackTrace(array('assert'));
- $this->assertEqual(
- $trace->traceMethod(array(array(
- 'file' => '/my_test.php',
- 'line' => 24,
- 'function' => 'assertSomething'))),
- ' at [/my_test.php line 24]');
- }
-}
-
-class DummyResource { }
-
-class TestOfContext extends UnitTestCase {
-
- function testCurrentContextIsUnique() {
- $this->assertSame(
- SimpleTest::getContext(),
- SimpleTest::getContext());
- }
-
- function testContextHoldsCurrentTestCase() {
- $context = SimpleTest::getContext();
- $this->assertSame($this, $context->getTest());
- }
-
- function testResourceIsSingleInstanceWithContext() {
- $context = new SimpleTestContext();
- $this->assertSame(
- $context->get('DummyResource'),
- $context->get('DummyResource'));
- }
-
- function testClearingContextResetsResources() {
- $context = new SimpleTestContext();
- $resource = $context->get('DummyResource');
- $context->clear();
- $this->assertClone($resource, $context->get('DummyResource'));
- }
-}
-?> \ No newline at end of file