Skip to content

Commit 9ca163f

Browse files
committed
Bump php to 7.3. Bump phpunit to 9.6. Remove yoast assertion helpers
1 parent d23bf8a commit 9ca163f

File tree

8 files changed

+491
-308
lines changed

8 files changed

+491
-308
lines changed

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@
1212
}
1313
],
1414
"require" : {
15-
"php" : ">=7.2",
15+
"php" : ">=7.3",
1616
"ext-pdo_sqlite": "*",
1717
"php-school/php-workshop": "dev-master",
1818
"ext-sockets": "*"
1919
},
2020
"require-dev": {
2121
"phpstan/phpstan": "^0.12.52",
2222
"squizlabs/php_codesniffer": "^3.5",
23-
"phpunit/phpunit": "^8.5",
24-
"yoast/phpunit-polyfills": "^1.0"
23+
"phpunit/phpunit": "^9.6"
2524
},
2625
"autoload" : {
2726
"psr-4" : {

composer.lock

Lines changed: 489 additions & 289 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/Exercise/ArrayWeGoTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
use PhpSchool\PhpWorkshop\ExerciseDispatcher;
1111
use PHPUnit\Framework\TestCase;
1212
use Symfony\Component\Filesystem\Filesystem;
13-
use Yoast\PHPUnitPolyfills\Polyfills\AssertionRenames;
1413

1514
class ArrayWeGoTest extends TestCase
1615
{
17-
use AssertionRenames;
1816

1917
/**
2018
* @var Generator

test/Exercise/ConcernedAboutSeparationTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@
1111
use PhpSchool\PhpWorkshop\Result\Success;
1212
use PHPUnit\Framework\TestCase;
1313
use Symfony\Component\Filesystem\Filesystem;
14-
use Yoast\PHPUnitPolyfills\Polyfills\AssertionRenames;
1514

1615
class ConcernedAboutSeparationTest extends TestCase
1716
{
18-
use AssertionRenames;
19-
2017
/**
2118
* @var Filesystem
2219
*/

test/Exercise/ExceptionalCodingTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
use PhpSchool\PhpWorkshop\ExerciseDispatcher;
1111
use PHPUnit\Framework\TestCase;
1212
use Symfony\Component\Filesystem\Filesystem;
13-
use Yoast\PHPUnitPolyfills\Polyfills\AssertionRenames;
1413

1514
class ExceptionalCodingTest extends TestCase
1615
{
17-
use AssertionRenames;
18-
1916
/**
2017
* @var Generator
2118
*/

test/Exercise/FilteredLsTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
namespace PhpSchool\LearnYouPhpTest\Exercise;
44

55
use PhpSchool\PhpWorkshop\Exercise\ExerciseType;
6-
use PhpSchool\PhpWorkshop\Solution\SolutionInterface;
76
use PHPUnit\Framework\TestCase;
87
use PhpSchool\LearnYouPhp\Exercise\FilteredLs;
98
use Symfony\Component\Filesystem\Filesystem;
10-
use Yoast\PHPUnitPolyfills\Polyfills\AssertionRenames;
119

1210
class FilteredLsTest extends TestCase
1311
{
14-
use AssertionRenames;
1512

1613
/**
1714
* @var Filesystem

test/Exercise/MyFirstIoTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111
use PHPUnit\Framework\TestCase;
1212
use PhpSchool\LearnYouPhp\Exercise\MyFirstIo;
1313
use Symfony\Component\Filesystem\Filesystem;
14-
use Yoast\PHPUnitPolyfills\Polyfills\AssertionRenames;
1514

1615
class MyFirstIoTest extends TestCase
1716
{
18-
use AssertionRenames;
1917

2018
/**
2119
* @var Generator

test/Exercise/TimeServerTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Colors\Color;
66
use PhpSchool\LearnYouPhp\Exercise\TimeServer;
7-
use PhpSchool\LearnYouPhp\TcpSocketFactory;
87
use PhpSchool\PhpWorkshop\Check\CheckRepository;
98
use PhpSchool\PhpWorkshop\Event\EventDispatcher;
109
use PhpSchool\PhpWorkshop\Exercise\ExerciseType;
@@ -20,11 +19,9 @@
2019
use PhpSchool\PhpWorkshop\ResultAggregator;
2120
use PhpSchool\Terminal\Terminal;
2221
use PHPUnit\Framework\TestCase;
23-
use Yoast\PHPUnitPolyfills\Polyfills\AssertionRenames;
2422

2523
class TimeServerTest extends TestCase
2624
{
27-
use AssertionRenames;
2825

2926
/**
3027
* @var TimeServer

0 commit comments

Comments
 (0)