Skip to content

Commit eac5c0a

Browse files
Add support for L5.5 and up + PHP 7.1 and up
1 parent d4e6c9c commit eac5c0a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.travis.yml

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

33
php:
4+
- 7.1
45
- 7.2
56
- 7.3
67

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.2",
20-
"illuminate/database": "~5.8.0",
21-
"illuminate/http": "~5.8.0",
22-
"illuminate/support": "~5.8.0"
19+
"php": "^7.1",
20+
"illuminate/database": "~5.5.43|~5.6.0|~5.7.0|~5.8.0",
21+
"illuminate/http": "~5.5.43|~5.6.0|~5.7.0|~5.8.0",
22+
"illuminate/support": "~5.5.43|~5.6.0|~5.7.0|~5.8.0"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^7.5|^8.0",
26-
"orchestra/testbench": "~3.8.0"
25+
"phpunit/phpunit": "^6.0|^7.0|^8.0",
26+
"orchestra/testbench": "~3.5.0|~3.6.0|~3.7.0|~3.8.0"
2727
},
2828
"autoload": {
2929
"psr-4": {

tests/TestCase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Support\Facades\DB;
66
use Illuminate\Foundation\Application;
77
use Illuminate\Database\Schema\Blueprint;
8+
use Illuminate\Support\Str;
89
use Orchestra\Testbench\TestCase as Orchestra;
910
use Spatie\QueryBuilder\QueryBuilderServiceProvider;
1011

@@ -84,6 +85,7 @@ protected function assertQueryLogContains(string $partialSql)
8485
{
8586
$queryLog = collect(DB::getQueryLog())->pluck('query')->implode('|');
8687

87-
$this->assertStringContainsString($partialSql, $queryLog);
88+
// Could've used `assertStringContainsString` but we want to support L5.5 with PHPUnit 6.0
89+
$this->assertTrue(Str::contains($queryLog, $partialSql));
8890
}
8991
}

0 commit comments

Comments
 (0)