mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-06 08:14:08 +01:00
* Check plugins composer.json using CI * Add "require-dev" and "config.allow-plugins" to plugins * fix composer.json format - rm invalid email * fix composer.json format - fix ext require * fix composer.json format - fix plugin name * tmp * Revert "tmp" * fix ext in ext install * disable plugin in plugin install until Roundcube is fully autoloadable * fix composer.json format - fix non-canonical license name * Revert "Add "require-dev" and "config.allow-plugins" to plugins" * no composer install for plugins needed * Revert "fix ext in ext install" * add standard "Test" suffix to phpunit files * rm unneeded "suffix" in phpunit config * simplify phpunit config * fix default "xhtml" doctype in unit testing * fix test_format_date test to not rely on other tests * even more phpunit config simplify * stricter/unify phpunit params for E2E tests * run E2E tests on maximal php version too with lowest deps * "repositories" in bundled plugins are useless as for root package only * add/unify missing plugin test
40 lines
727 B
PHP
40 lines
727 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
/**
|
|
* Test class to test rcube_spellchecker class
|
|
*/
|
|
class Framework_Spellchecker extends TestCase
|
|
{
|
|
/**
|
|
* Test is_exception() method
|
|
*/
|
|
public function test_is_exception()
|
|
{
|
|
$object = new rcube_spellchecker();
|
|
|
|
$this->assertFalse($object->is_exception('test'));
|
|
|
|
$this->assertTrue($object->is_exception('9'));
|
|
|
|
// TODO: Test other cases and dictionary
|
|
}
|
|
|
|
/**
|
|
* Test add_word() method
|
|
*/
|
|
public function test_add_word()
|
|
{
|
|
$this->markTestIncomplete();
|
|
}
|
|
|
|
/**
|
|
* Test remove_word() method
|
|
*/
|
|
public function test_remove_word()
|
|
{
|
|
$this->markTestIncomplete();
|
|
}
|
|
}
|