Skip to content

Commit 752c859

Browse files
authored
Merge pull request #24 from Soapbox/feature/add-laravel-6-support
Added laravel 6 support
2 parents 647e406 + 681b17f commit 752c859

File tree

5 files changed

+14
-21
lines changed

5 files changed

+14
-21
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
language: php
22

33
php:
4-
- 7.1
54
- 7.2
5+
- 7.3
6+
- 7.4
67

78
before_script: composer install
89

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
],
1212
"minimum-stability": "stable",
1313
"require": {
14-
"php": ">=7.1",
14+
"php": ">=7.2",
1515
"guzzlehttp/guzzle": "^6.2",
16-
"illuminate/http": "^5.4",
17-
"illuminate/support": "^5.4",
18-
"nesbot/carbon": "^1.22 || ^2.0",
16+
"illuminate/http": "^6.0",
17+
"illuminate/support": "^6.0",
18+
"nesbot/carbon": "^2.0",
1919
"ramsey/uuid": "^3.6"
2020
},
2121
"require-dev": {
22-
"jshayes/fake-requests": "^2.0",
23-
"mockery/mockery": "^0.9.9",
24-
"orchestra/testbench": "^3.4",
25-
"phpunit/phpunit": "^6.0",
22+
"jshayes/fake-requests": "^3.0",
23+
"mockery/mockery": "^1.0",
24+
"orchestra/testbench": "^4.0",
25+
"phpunit/phpunit": "^8.0",
2626
"satooshi/php-coveralls": "^1.0"
2727
},
2828
"autoload": {

tests/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function fromInteger($integer)
5757
});
5858
}
5959

60-
protected function setUp()
60+
protected function setUp(): void
6161
{
6262
parent::setUp();
6363

tests/ServiceProviderTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Tests;
44

5+
use Illuminate\Support\Str;
56
use Orchestra\Testbench\TestCase as Base;
67
use SoapBox\SignedRequests\ServiceProvider;
78

@@ -20,8 +21,8 @@ public function it_publishes_configurations_when_it_is_booted()
2021
$this->assertNotEmpty($publishes);
2122

2223
foreach ($publishes as $key => $value) {
23-
$this->assertTrue(ends_with($key, 'signed-requests.php'));
24-
$this->assertTrue(ends_with($value, 'signed-requests.php'));
24+
$this->assertTrue(Str::endsWith($key, 'signed-requests.php'));
25+
$this->assertTrue(Str::endsWith($value, 'signed-requests.php'));
2526
}
2627
}
2728
}

tests/TestCase.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77

88
abstract class TestCase extends Base
99
{
10-
/**
11-
* @before
12-
*/
13-
protected function setUpMockery()
14-
{
15-
Mockery::getConfiguration()->allowMockingNonExistentMethods(false);
16-
Mockery::getConfiguration()->allowMockingMethodsUnnecessarily(false);
17-
}
18-
1910
/**
2011
* @after
2112
*/

0 commit comments

Comments
 (0)