Skip to content

Commit 8fd42e6

Browse files
authored
Upgraded PHPUnit (#54)
* bumped phpunit version * Apply fixes from StyleCI
1 parent 2be07f0 commit 8fd42e6

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.idea/
2+
vendor/
3+
node_modules/
4+
.DS_Store
5+
.composer.lock
6+
composer.lock
7+
.phpunit.result.cache

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"backpack/pagemanager": "^2.0"
2424
},
2525
"require-dev": {
26-
"phpunit/phpunit" : "4.*",
26+
"phpunit/phpunit" : "^9.0||^7.0",
2727
"scrutinizer/ocular": "~1.1",
28-
"squizlabs/php_codesniffer": "~2.3"
28+
"squizlabs/php_codesniffer": "~2.3 || ~3.0"
2929
},
3030
"autoload": {
3131
"psr-4": {
@@ -38,7 +38,7 @@
3838
}
3939
},
4040
"scripts": {
41-
"test": "phpunit"
41+
"test": "vendor/bin/phpunit --testdox"
4242
},
4343
"extra": {
4444
"branch-alias": {

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/BaseTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
class BaseTest extends PHPUnit_Framework_TestCase
3+
use PHPUnit\Framework\TestCase;
4+
5+
class BaseTest extends TestCase
46
{
57
/**
68
* A basic test example.

0 commit comments

Comments
 (0)