Skip to content

Commit c3fb20f

Browse files
committed
Update PHPUnit and bring test code into line.
1 parent 9ee0480 commit c3fb20f

6 files changed

Lines changed: 18 additions & 11 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"illuminate/support": "~5|~6"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": ">=5.3",
24-
"mockery/mockery": ">=0.9.4"
23+
"phpunit/phpunit": "^8",
24+
"mockery/mockery": "^1"
2525
},
2626
"autoload": {
2727
"psr-4": {

phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
>
1312
<testsuites>
1413
<testsuite name="Package Test Suite">

tests/FilterTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<?php
22

3-
class FilterTest extends \PHPUnit_Framework_TestCase
3+
use PHPUnit\Framework\TestCase;
4+
5+
class FilterTest extends TestCase
46
{
57
protected $maker;
68

7-
public function setUp()
9+
public function setUp(): void
810
{
911
$this->maker = new PeterColes\Languages\Maker;
1012
}

tests/KeyValueTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<?php
22

3-
class KeyValueTest extends \PHPUnit_Framework_TestCase
3+
use PHPUnit\Framework\TestCase;
4+
5+
class KeyValueTest extends TestCase
46
{
57
protected $maker;
68

7-
public function setUp()
9+
public function setUp(): void
810
{
911
$this->maker = new PeterColes\Languages\Maker;
1012
}

tests/LookupTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<?php
22

3-
class LookupTest extends \PHPUnit_Framework_TestCase
3+
use PHPUnit\Framework\TestCase;
4+
5+
class LookupTest extends TestCase
46
{
57
protected $maker;
68

7-
public function setUp()
9+
public function setUp(): void
810
{
911
$this->maker = new PeterColes\Languages\Maker;
1012
}

tests/MixedLocaleTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<?php
22

3-
class MixedLocaleTest extends \PHPUnit_Framework_TestCase
3+
use PHPUnit\Framework\TestCase;
4+
5+
class MixedLocaleTest extends TestCase
46
{
57
protected $maker;
68

7-
public function setUp()
9+
public function setUp(): void
810
{
911
$this->maker = new PeterColes\Languages\Maker;
1012
}

0 commit comments

Comments
 (0)