Skip to content

Commit ea17a3a

Browse files
authored
Laravel 8.x support (#4)
* Laravel 8.x support * Remove Travis PHP 7.2 because Laravel 8.x run using PHP 7.3+
1 parent a684d27 commit ea17a3a

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: php
22

33
php:
4-
- 7.2
54
- 7.3
65
- 7.4
76

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Laravel-specific Testing Helpers and Assertions.
1717

1818
| Laravel | Testing Tools |
1919
| ------- | :----------------------------------------------------------------------: |
20+
| 8.x | [8.x](https://github.com/dmitry-ivanov/laravel-testing-tools/tree/8.x) |
2021
| 7.x | [7.x](https://github.com/dmitry-ivanov/laravel-testing-tools/tree/7.x) |
2122
| 6.x | [6.x](https://github.com/dmitry-ivanov/laravel-testing-tools/tree/6.x) |
2223
| 5.8.* | [5.8.*](https://github.com/dmitry-ivanov/laravel-testing-tools/tree/5.8) |

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
"email": "[email protected]"
1313
}],
1414
"require": {
15-
"php": "^7.2.5",
16-
"illuminate/support": "^7.0",
17-
"illuminate/database": "^7.0",
15+
"php": "^7.3",
16+
"illuminate/database": "^8.0",
17+
"illuminate/support": "^8.0",
18+
"laravel/legacy-factories": "^1.0",
1819
"mockery/mockery": "^1.2"
1920
},
2021
"require-dev": {
2122
"phpunit/phpunit": "^8.4|^9.0",
22-
"orchestra/testbench": "^5.0"
23+
"orchestra/testbench": "^6.0"
2324
},
2425
"autoload": {
2526
"psr-4": {

src/Asserts/LogFileAsserts.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function seeLogFile(string $path)
3232
protected function dontSeeLogFile(string $path)
3333
{
3434
$message = "Failed asserting that log file `{$path}` not exists.";
35-
$this->assertFileNotExists($this->composeLogFilePath($path), $message);
35+
self::assertFileDoesNotExist($this->composeLogFilePath($path), $message);
3636
}
3737

3838
/**
@@ -51,7 +51,7 @@ protected function seeInLogFile(string $path, $message)
5151
$content = File::get($this->composeLogFilePath($path));
5252
foreach ($messages as $item) {
5353
$pattern = $this->composeRegexPattern($item);
54-
$this->assertRegExp($pattern, $content, "Failed asserting that file `{$path}` contains `{$item}`.");
54+
self::assertMatchesRegularExpression($pattern, $content, "Failed asserting that file `{$path}` contains `{$item}`.");
5555
}
5656
}
5757

@@ -71,7 +71,7 @@ protected function dontSeeInLogFile(string $path, $message)
7171
$content = File::get($this->composeLogFilePath($path));
7272
foreach ($messages as $item) {
7373
$pattern = $this->composeRegexPattern($item);
74-
$this->assertNotRegExp($pattern, $content, "Failed asserting that file `{$path}` not contains `{$item}`.");
74+
self::assertDoesNotMatchRegularExpression($pattern, $content, "Failed asserting that file `{$path}` not contains `{$item}`.");
7575
}
7676
}
7777

0 commit comments

Comments
 (0)