@@ -178,9 +178,9 @@ public function testMinInputLength( $testLine, $lang, $res ) {
178178
179179 // should get no results when min input len is more than the length of the string
180180 $ this ->testcat ->setMinInputLength ( mb_strlen ( $ testLine ) + 1 );
181- $ this ->assertEquals ( array_keys ( $ this -> testcat -> classify ( $ testLine , $ res ) ) ,
182- [] );
183- $ this ->assertEquals ( $ this ->testcat ->getResultStatus (), TextCat:: STATUSTOOSHORT );
181+ $ this ->assertEquals ( [] ,
182+ array_keys ( $ this -> testcat -> classify ( $ testLine , $ res ) ) );
183+ $ this ->assertEquals ( TextCat:: STATUSTOOSHORT , $ this ->testcat ->getResultStatus () );
184184
185185 // reset to defaults
186186 $ this ->testcat ->setMinInputLength ( 0 );
@@ -314,9 +314,9 @@ public function testBoostedLangs( $testLine, $res1, $res2, $boost ) {
314314
315315 public function testNoMatch () {
316316 # no xxx.lm model exists, so get no match
317- $ this ->assertEquals ( array_keys ( $ this -> testcat -> classify ( " a string " , [ " xxx " ] ) ) ,
318- [] );
319- $ this ->assertEquals ( $ this ->testcat ->getResultStatus (), TextCat:: STATUSNOMATCH );
317+ $ this ->assertEquals ( [] ,
318+ array_keys ( $ this -> testcat -> classify ( " a string " , [ " xxx " ] ) ) );
319+ $ this ->assertEquals ( TextCat:: STATUSNOMATCH , $ this ->testcat ->getResultStatus () );
320320 }
321321
322322 public function testWordSep () {
0 commit comments