Skip to content

Commit 8093f0e

Browse files
mimmi20localheinz
authored andcommittedJun 1, 2017
update phpunit (#127)
* update phpunit * add more options * do review comments
1 parent 4eac73d commit 8093f0e

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed
 

‎composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"require-dev": {
3030
"friendsofphp/php-cs-fixer": "^2.0.0",
31-
"phpunit/phpunit": "^4.8.31"
31+
"phpunit/phpunit": "^4.8.35 || ^5.7.0 || ^6.0.0"
3232
},
3333
"autoload": {
3434
"psr-4": {

‎phpunit.xml.dist

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22

33
<phpunit
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
66
backupGlobals="false"
77
backupStaticAttributes="false"
8+
beStrictAboutOutputDuringTests="true"
9+
beStrictAboutTestsThatDoNotTestAnything="true"
10+
beStrictAboutTodoAnnotatedTests="true"
811
colors="true"
912
convertErrorsToExceptions="true"
1013
convertNoticesToExceptions="true"
1114
convertWarningsToExceptions="true"
1215
processIsolation="false"
1316
stopOnFailure="false"
17+
failOnWarning="true"
1418
bootstrap="vendor/autoload.php">
1519
<testsuites>
1620
<testsuite name="PHP test reporter test suite">
@@ -19,7 +23,7 @@
1923
</testsuites>
2024

2125
<filter>
22-
<whitelist>
26+
<whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true">
2327
<directory>./src</directory>
2428
<exclude>
2529
<directory>./composer</directory>

‎tests/Unit/ApplicationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use CodeClimate\PhpTestReporter\Application;
55
use Symfony\Component\Console\Tester\ApplicationTester;
66

7-
class ApplicationTest extends \PHPUnit_Framework_TestCase
7+
class ApplicationTest extends \PHPUnit\Framework\TestCase
88
{
99
const PROJECT_DIR = "/tmp/php-test-reporter-example-project";
1010

‎tests/Unit/System/Git/GitInfoTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use CodeClimate\PhpTestReporter\System\Git\GitInfo;
66

7-
class GitInfoTest extends \PHPUnit_Framework_TestCase
7+
class GitInfoTest extends \PHPUnit\Framework\TestCase
88
{
99
public function testIsFinal()
1010
{

‎tests/Unit/TestReporter/Entity/CiInfoTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use CodeClimate\PhpTestReporter\TestReporter\Entity\CiInfo;
66

7-
final class CiInfoTest extends \PHPUnit_Framework_TestCase
7+
final class CiInfoTest extends \PHPUnit\Framework\TestCase
88
{
99
public function testToArrayReturnsEmptyArrayIfUnableToDetermineEnvironment()
1010
{

0 commit comments

Comments
 (0)