Yaffs site version 1.1
[yaffs-website] / vendor / gabordemooij / redbean / testing / RedUNIT / Blackhole.php
diff --git a/vendor/gabordemooij/redbean/testing/RedUNIT/Blackhole.php b/vendor/gabordemooij/redbean/testing/RedUNIT/Blackhole.php
new file mode 100644 (file)
index 0000000..f947fa6
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+
+namespace RedUNIT;
+
+/**
+ * Blackhole
+ *
+ * The Blackhole class is the parent class of all tests that do not require a
+ * specific database connection.
+ *
+ * @file    RedUNIT/Blackhole.php
+ * @desc    Tests that do not require a database or can just use the base SQLite driver.
+ * @author  Gabor de Mooij and the RedBeanPHP Community
+ * @license New BSD/GPLv2
+ *
+ * (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community.
+ * This source file is subject to the New BSD/GPLv2 License that is bundled
+ * with this source code in the file license.txt.
+ */
+class Blackhole extends RedUNIT
+{
+       /**
+        * Returns a list of drivers for which this driver supports
+        * 'test rounds'. This class does not specify any drivers and
+        * can therefore be used as the base class of all tests not
+        * requiring a specific database connection.
+        *
+        * @see RedUNIT::getTargetDrivers() for details.
+        *
+        * @return array
+        */
+       public function getTargetDrivers()
+       {
+               return array();
+       }
+}