mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-07 00:26:48 +01:00
* Fix "method_argument_space" * Fix "control_structure_continuation_position" * Fix "new_with_parentheses" * Fix "blank_line_before_statement" * Fix "visibility_required" * Fix some "array_indentation" * Fix some "array_indentation" - unify all "rcube::raise_error" calls * rm useless eslint ignores and add rules counts * sort eslint ignores * fix eslint ignores grammar * Revert "Fix "blank_line_before_statement"" * fix CS 3.46.0
38 lines
712 B
PHP
38 lines
712 B
PHP
<?php
|
|
|
|
/**
|
|
* Test class to test rcube_spellchecker class
|
|
*/
|
|
class Framework_Spellchecker extends PHPUnit\Framework\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();
|
|
}
|
|
}
|