Skip to content

Commit 40a2c64

Browse files
committed
upgrade phpunit library
1 parent b7c1d0c commit 40a2c64

File tree

57 files changed

+70
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+70
-69
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"vanderlee/php-sentence": "^1.0"
3535
},
3636
"require-dev": {
37-
"phpunit/phpunit": "~5",
38-
"mockery/mockery" : "~1.0"
37+
"phpunit/phpunit": "~7",
38+
"mockery/mockery" : "~1.2"
3939
}
4040
}

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
convertNoticesToExceptions="true"
88
convertWarningsToExceptions="true"
99
processIsolation="false"
10-
stopOnFailure="false"
11-
syntaxCheck="false">
10+
beStrictAboutTestsThatDoNotTestAnything="false"
11+
stopOnFailure="false">
1212
<testsuites>
1313
<testsuite name="Text Analysis Test Suite">
1414
<directory suffix=".php">./tests/</directory>

src/NGrams/NGramFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ protected function __construct(){}
2525
*/
2626
static public function create(array $tokens, $nGramSize = self::BIGRAM, $separator = ' ') : array
2727
{
28-
$separatorLength = strlen($separator);
2928
$length = count($tokens) - $nGramSize + 1;
3029
if($length < 1) {
3130
return [];

tests/TestBaseCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @author yooper
1212
*/
13-
class TestBaseCase extends \PHPUnit_Framework_TestCase
13+
class TestBaseCase extends \PHPUnit\Framework\TestCase
1414
{
1515
/**
1616
* The default text that is used with a lot of test cases

tests/TextAnalysis/Adapters/PspellAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @author yooper
1111
*/
12-
class PspellAdapterTest extends \PHPUnit_Framework_TestCase
12+
class PspellAdapterTest extends \PHPUnit\Framework\TestCase
1313
{
1414
public function testSpelling()
1515
{

tests/TextAnalysis/Analysis/DateAnalysisTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* @author yooper
1010
*/
11-
class DateAnalysisTest extends \PHPUnit_Framework_TestCase
11+
class DateAnalysisTest extends \PHPUnit\Framework\TestCase
1212
{
1313
public function testDateAnalysis()
1414
{

tests/TextAnalysis/Analysis/FreqDistTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Test cases for FreqDist
77
* @author yooper (yooper)
88
*/
9-
class FreqDistTest extends \PHPUnit_Framework_TestCase
9+
class FreqDistTest extends \PHPUnit\Framework\TestCase
1010
{
1111

1212
public function testSimpleFreqDist()

tests/TextAnalysis/Analysis/Keywords/RakeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Test Rake algorithm
1616
* @author yooper
1717
*/
18-
class RakeTest extends \PHPUnit_Framework_TestCase
18+
class RakeTest extends \PHPUnit\Framework\TestCase
1919
{
2020
public function testRake()
2121
{

tests/TextAnalysis/Analysis/Summarize/SimpleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Test out the simple summary algorithm
77
* @author yooper
88
*/
9-
class SimpleTest extends \PHPUnit_Framework_TestCase
9+
class SimpleTest extends \PHPUnit\Framework\TestCase
1010
{
1111
public function testSimpleWithStopwords()
1212
{

tests/TextAnalysis/Classifiers/NaiveBayesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @author yooper
99
*/
10-
class NaiveBayesTest extends \PHPUnit_Framework_TestCase
10+
class NaiveBayesTest extends \PHPUnit\Framework\TestCase
1111
{
1212

1313
public function testNaiveBayes()

0 commit comments

Comments
 (0)