Aleksander Machniak
2014-02-09 4bcb8ac002c95e6290b9307ab41bb8539cde8fe5
Add dummy tests for rcube_spellcheck_* classes
4 files added
1 files modified
88 ■■■■■ changed files
tests/Framework/SpellcheckAtd.php 21 ●●●●● patch | view | raw | blame | history
tests/Framework/SpellcheckEnchant.php 21 ●●●●● patch | view | raw | blame | history
tests/Framework/SpellcheckGoogie.php 21 ●●●●● patch | view | raw | blame | history
tests/Framework/SpellcheckPspell.php 21 ●●●●● patch | view | raw | blame | history
tests/phpunit.xml 4 ●●●● patch | view | raw | blame | history
tests/Framework/SpellcheckAtd.php
New file
@@ -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");
    }
}
tests/Framework/SpellcheckEnchant.php
New file
@@ -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");
    }
}
tests/Framework/SpellcheckGoogie.php
New file
@@ -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");
    }
}
tests/Framework/SpellcheckPspell.php
New file
@@ -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");
    }
}
tests/phpunit.xml
@@ -24,6 +24,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>