From c8699f09eae6265e566a18c4597334d363aa4492 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 09 Feb 2014 12:21:32 -0500
Subject: [PATCH] Add dummy tests for rcube_spellcheck_* classes

---
 tests/Framework/SpellcheckAtd.php     |   21 ++++++++++
 tests/phpunit.xml                     |    4 ++
 tests/Framework/SpellcheckEnchant.php |   21 ++++++++++
 tests/Framework/SpellcheckGoogie.php  |   21 ++++++++++
 tests/Framework/SpellcheckPspell.php  |   21 ++++++++++
 5 files changed, 88 insertions(+), 0 deletions(-)

diff --git a/tests/Framework/SpellcheckAtd.php b/tests/Framework/SpellcheckAtd.php
new file mode 100644
index 0000000..cc82824
--- /dev/null
+++ b/tests/Framework/SpellcheckAtd.php
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * Test class to test rcube_spellcheck_atd class
+ *
+ * @package Tests
+ */
+class Framework_SpellcheckAtd extends PHPUnit_Framework_TestCase
+{
+
+    /**
+     * Class constructor
+     */
+    function test_class()
+    {
+        $object = new rcube_spellcheck_atd(null, 'en');
+
+        $this->assertInstanceOf('rcube_spellcheck_atd', $object, "Class constructor");
+        $this->assertInstanceOf('rcube_spellcheck_engine', $object, "Class constructor");
+    }
+}
diff --git a/tests/Framework/SpellcheckEnchant.php b/tests/Framework/SpellcheckEnchant.php
new file mode 100644
index 0000000..85393e7
--- /dev/null
+++ b/tests/Framework/SpellcheckEnchant.php
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * Test class to test rcube_spellcheck_enchant class
+ *
+ * @package Tests
+ */
+class Framework_SpellcheckEnchant extends PHPUnit_Framework_TestCase
+{
+
+    /**
+     * Class constructor
+     */
+    function test_class()
+    {
+        $object = new rcube_spellcheck_enchant(null, 'en');
+
+        $this->assertInstanceOf('rcube_spellcheck_enchant', $object, "Class constructor");
+        $this->assertInstanceOf('rcube_spellcheck_engine', $object, "Class constructor");
+    }
+}
diff --git a/tests/Framework/SpellcheckGoogie.php b/tests/Framework/SpellcheckGoogie.php
new file mode 100644
index 0000000..dc7d70d
--- /dev/null
+++ b/tests/Framework/SpellcheckGoogie.php
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * Test class to test rcube_spellcheck_googie class
+ *
+ * @package Tests
+ */
+class Framework_SpellcheckGoogie extends PHPUnit_Framework_TestCase
+{
+
+    /**
+     * Class constructor
+     */
+    function test_class()
+    {
+        $object = new rcube_spellcheck_googie(null, 'en');
+
+        $this->assertInstanceOf('rcube_spellcheck_googie', $object, "Class constructor");
+        $this->assertInstanceOf('rcube_spellcheck_engine', $object, "Class constructor");
+    }
+}
diff --git a/tests/Framework/SpellcheckPspell.php b/tests/Framework/SpellcheckPspell.php
new file mode 100644
index 0000000..bd622b2
--- /dev/null
+++ b/tests/Framework/SpellcheckPspell.php
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * Test class to test rcube_spellcheck_pspell class
+ *
+ * @package Tests
+ */
+class Framework_SpellcheckPspell extends PHPUnit_Framework_TestCase
+{
+
+    /**
+     * Class constructor
+     */
+    function test_class()
+    {
+        $object = new rcube_spellcheck_pspell(null, 'en');
+
+        $this->assertInstanceOf('rcube_spellcheck_pspell', $object, "Class constructor");
+        $this->assertInstanceOf('rcube_spellcheck_engine', $object, "Class constructor");
+    }
+}
diff --git a/tests/phpunit.xml b/tests/phpunit.xml
index 8021933..bd92e58 100644
--- a/tests/phpunit.xml
+++ b/tests/phpunit.xml
@@ -29,6 +29,10 @@
             <file>Framework/ResultSet.php</file>
             <file>Framework/ResultThread.php</file>
             <file>Framework/Smtp.php</file>
+            <file>Framework/SpellcheckAtd.php</file>
+            <file>Framework/SpellcheckEnchant.php</file>
+            <file>Framework/SpellcheckGoogie.php</file>
+            <file>Framework/SpellcheckPspell.php</file>
             <file>Framework/Spellchecker.php</file>
             <file>Framework/StringReplacer.php</file>
             <file>Framework/User.php</file>

--
Gitblit v1.9.1