Skip to content

Commit 9fd3295

Browse files
committed
phpunit 9
1 parent 5af97f3 commit 9fd3295

File tree

8 files changed

+604
-251
lines changed

8 files changed

+604
-251
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"phpstan/phpstan": "^0.12.52"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "^7.0 | ^8.0 ",
22+
"phpunit/phpunit": "^8.0 | ^9.0",
2323
"squizlabs/php_codesniffer": "^3.5"
2424
},
2525
"autoload" : {

composer.lock

Lines changed: 595 additions & 242 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testGetArgsHasAtLeastOneNonExistingFile(): void
6363
});
6464

6565
foreach ($nonExistingFiles as $file) {
66-
$this->assertFileNotExists($file);
66+
$this->assertFileDoesNotExist($file);
6767
}
6868

6969
$this->assertGreaterThanOrEqual(1, count($nonExistingFiles));
@@ -80,7 +80,7 @@ public function testTearDownRemovesFile(): void
8080

8181
$e->tearDown();
8282

83-
$this->assertFileNotExists($existingFiles[0]);
83+
$this->assertFileDoesNotExist($existingFiles[0]);
8484
}
8585

8686
public function testFunctionRequirements(): void

test/Exercise/ConcernedAboutSeparationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testTearDownRemovesFile(): void
8585

8686
$e->tearDown();
8787

88-
$this->assertFileNotExists($path);
88+
$this->assertFileDoesNotExist($path);
8989
}
9090

9191
public function testCheckReturnsFailureIfNoIncludeFoundInSolution(): void

test/Exercise/ExceptionalCodingTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testGetArgsHasAtleastOneNonExistingFile(): void
6464
});
6565

6666
foreach ($nonExistingFiles as $file) {
67-
$this->assertFileNotExists($file);
67+
$this->assertFileDoesNotExist($file);
6868
}
6969

7070
$this->assertGreaterThanOrEqual(1, count($nonExistingFiles));
@@ -81,7 +81,7 @@ public function testTearDownRemovesFile(): void
8181

8282
$e->tearDown();
8383

84-
$this->assertFileNotExists($existingFiles[0]);
84+
$this->assertFileDoesNotExist($existingFiles[0]);
8585
}
8686

8787
public function testFunctionRequirements(): void

test/Exercise/FilteredLsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ public function testTearDownRemovesFile(): void
7575

7676
$e->tearDown();
7777

78-
$this->assertFileNotExists($path);
78+
$this->assertFileDoesNotExist($path);
7979
}
8080
}

test/Exercise/MyFirstIoTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testTearDownRemovesFile(): void
6767

6868
$e->tearDown();
6969

70-
$this->assertFileNotExists($path);
70+
$this->assertFileDoesNotExist($path);
7171
}
7272

7373
public function testFunctionRequirements(): void

test/Exercise/TimeServerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testFailureIsReturnedIfCannotConnect(): void
8383
$reason .= ' while trying to join tcp:\/\/127\.0\.0\.1:\d+\.$/';
8484
}
8585

86-
$this->assertRegExp($reason, $failure->getReason());
86+
$this->assertMatchesRegularExpression($reason, $failure->getReason());
8787
$this->assertEquals('Time Server', $failure->getCheckName());
8888
}
8989

0 commit comments

Comments
 (0)