summaryrefslogtreecommitdiff
path: root/test/ConfigurationTest.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2018-09-01 15:32:40 +0100
committerAndres Rey <[email protected]>2018-09-01 15:32:40 +0100
commitfc09c2fb5ce824adf9c0e4e53b631197c9cdc98d (patch)
tree2be149bbf3787fb90483d3396349c46c367d7031 /test/ConfigurationTest.php
parent2695ce5d4fbd424406535e06273e1ffda264f663 (diff)
Rename wordThreshold to charThreshold and throw deprecation notices
Diffstat (limited to 'test/ConfigurationTest.php')
-rw-r--r--test/ConfigurationTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ConfigurationTest.php b/test/ConfigurationTest.php
index 19db2f1..b304b40 100644
--- a/test/ConfigurationTest.php
+++ b/test/ConfigurationTest.php
@@ -40,6 +40,7 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
private function doEqualsAsserts(Configuration $config, array $options)
{
$this->assertEquals($options['maxTopCandidates'], $config->getMaxTopCandidates());
+ $this->assertEquals($options['charThreshold'], $config->getCharThreshold());
$this->assertEquals($options['wordThreshold'], $config->getWordThreshold());
$this->assertEquals($options['articleByLine'], $config->getArticleByLine());
$this->assertEquals($options['stripUnlikelyCandidates'], $config->getStripUnlikelyCandidates());
@@ -61,6 +62,7 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
'All current parameters' => [
'maxTopCandidates' => 3,
'wordThreshold' => 500,
+ 'charThreshold' => 500,
'articleByLine' => true,
'stripUnlikelyCandidates' => false,
'cleanConditionally' => false,