Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / _files / BeforeAndAfterTest.php
diff --git a/vendor/phpunit/phpunit/tests/_files/BeforeAndAfterTest.php b/vendor/phpunit/phpunit/tests/_files/BeforeAndAfterTest.php
new file mode 100644 (file)
index 0000000..0b52526
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+class BeforeAndAfterTest extends PHPUnit_Framework_TestCase
+{
+    public static $beforeWasRun;
+    public static $afterWasRun;
+
+    public static function resetProperties()
+    {
+        self::$beforeWasRun = 0;
+        self::$afterWasRun  = 0;
+    }
+
+    /**
+     * @before
+     */
+    public function initialSetup()
+    {
+        self::$beforeWasRun++;
+    }
+
+    /**
+     * @after
+     */
+    public function finalTeardown()
+    {
+        self::$afterWasRun++;
+    }
+
+    public function test1()
+    {
+    }
+    public function test2()
+    {
+    }
+}