Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / _files / ExceptionInTest.php
diff --git a/vendor/phpunit/phpunit/tests/_files/ExceptionInTest.php b/vendor/phpunit/phpunit/tests/_files/ExceptionInTest.php
new file mode 100644 (file)
index 0000000..32c7e24
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+class ExceptionInTest extends PHPUnit_Framework_TestCase
+{
+    public $setUp                = false;
+    public $assertPreConditions  = false;
+    public $assertPostConditions = false;
+    public $tearDown             = false;
+    public $testSomething        = false;
+
+    protected function setUp()
+    {
+        $this->setUp = true;
+    }
+
+    protected function assertPreConditions()
+    {
+        $this->assertPreConditions = true;
+    }
+
+    public function testSomething()
+    {
+        $this->testSomething = true;
+        throw new Exception;
+    }
+
+    protected function assertPostConditions()
+    {
+        $this->assertPostConditions = true;
+    }
+
+    protected function tearDown()
+    {
+        $this->tearDown = true;
+    }
+}