mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-04 15:24:02 +01:00
* fix Tests\Browser\TestCase imports * fix remaining imports * fix PHPUnit\Framework\TestCase imports * import GuzzleHttp\Client * fix remaining * "php_unit_method_casing" is not todo * fix "single_line_comment_spacing" * fix 2nd commit done using older fixer
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();
|
|
}
|
|
}
|