Skip to content

Commit

Permalink
Merge pull request #24 from Soapbox/feature/add-laravel-6-support
Browse files Browse the repository at this point in the history
Added laravel 6 support
  • Loading branch information
JaskirtPooni authored Jan 20, 2020
2 parents 647e406 + 681b17f commit 752c859
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: php

php:
- 7.1
- 7.2
- 7.3
- 7.4

before_script: composer install

Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
],
"minimum-stability": "stable",
"require": {
"php": ">=7.1",
"php": ">=7.2",
"guzzlehttp/guzzle": "^6.2",
"illuminate/http": "^5.4",
"illuminate/support": "^5.4",
"nesbot/carbon": "^1.22 || ^2.0",
"illuminate/http": "^6.0",
"illuminate/support": "^6.0",
"nesbot/carbon": "^2.0",
"ramsey/uuid": "^3.6"
},
"require-dev": {
"jshayes/fake-requests": "^2.0",
"mockery/mockery": "^0.9.9",
"orchestra/testbench": "^3.4",
"phpunit/phpunit": "^6.0",
"jshayes/fake-requests": "^3.0",
"mockery/mockery": "^1.0",
"orchestra/testbench": "^4.0",
"phpunit/phpunit": "^8.0",
"satooshi/php-coveralls": "^1.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function fromInteger($integer)
});
}

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
5 changes: 3 additions & 2 deletions tests/ServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Tests;

use Illuminate\Support\Str;
use Orchestra\Testbench\TestCase as Base;
use SoapBox\SignedRequests\ServiceProvider;

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

foreach ($publishes as $key => $value) {
$this->assertTrue(ends_with($key, 'signed-requests.php'));
$this->assertTrue(ends_with($value, 'signed-requests.php'));
$this->assertTrue(Str::endsWith($key, 'signed-requests.php'));
$this->assertTrue(Str::endsWith($value, 'signed-requests.php'));
}
}
}
Expand Down
9 changes: 0 additions & 9 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@

abstract class TestCase extends Base
{
/**
* @before
*/
protected function setUpMockery()
{
Mockery::getConfiguration()->allowMockingNonExistentMethods(false);
Mockery::getConfiguration()->allowMockingMethodsUnnecessarily(false);
}

/**
* @after
*/
Expand Down

0 comments on commit 752c859

Please sign in to comment.