diff options
author | Andres Rey <[email protected]> | 2018-11-25 12:47:06 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2018-11-25 12:47:06 +0000 |
commit | e1b31f9284225cc7121d8798d4757ea81704e44c (patch) | |
tree | 8ed70368b49a0fe3da8a4b7cc1057f97446dcdc5 /test/ConfigurationTest.php | |
parent | 992a11260de32a036c932a8ba61bcc8a46c34dd1 (diff) | |
parent | fcbb76a9a015b85bab63324e10ddfa993be17f78 (diff) |
Merge pull request #71 from andreskrey/development
v2.0.0
Diffstat (limited to 'test/ConfigurationTest.php')
-rw-r--r-- | test/ConfigurationTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ConfigurationTest.php b/test/ConfigurationTest.php index 19db2f1..e193069 100644 --- a/test/ConfigurationTest.php +++ b/test/ConfigurationTest.php @@ -9,7 +9,7 @@ use Monolog\Logger; /** * Class ConfigurationTest. */ -class ConfigurationTest extends \PHPUnit_Framework_TestCase +class ConfigurationTest extends \PHPUnit\Framework\TestCase { /** * @dataProvider getParams @@ -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, |