mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-03 06:44:03 +01:00
40 lines
712 B
PHP
40 lines
712 B
PHP
<?php
|
|
|
|
/**
|
|
* Test class to test rcube_spellchecker class
|
|
*
|
|
* @package Tests
|
|
*/
|
|
class Framework_Spellchecker extends PHPUnit\Framework\TestCase
|
|
{
|
|
/**
|
|
* Test is_exception() method
|
|
*/
|
|
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
|
|
*/
|
|
function test_add_word()
|
|
{
|
|
$this->markTestIncomplete();
|
|
}
|
|
|
|
/**
|
|
* Test remove_word() method
|
|
*/
|
|
function test_remove_word()
|
|
{
|
|
$this->markTestIncomplete();
|
|
}
|
|
}
|