Skip to content

Commit

Permalink
Merge branch 'release/2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksamson committed Jan 13, 2020
2 parents 927e96b + fec1992 commit 7bc164e
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 26 deletions.
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
composer.lock
/vendor
# Composer
/composer.lock
/vendor/*

# PHPUnit
/.phpunit.result.cache
9 changes: 1 addition & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@ language: php
sudo: false

php:
- 7.1
- 7.2
- 7.3
- 7.4

env:
matrix:
- TESTBENCH_VERSION=3.5.*
- TESTBENCH_VERSION=3.6.*
- TESTBENCH_VERSION=3.7.*
global:
- COMPOSER_DISCARD_CHANGES=true
- COMPOSER_NO_INTERACTION=1
Expand All @@ -24,7 +18,6 @@ matrix:
before_install:
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- composer self-update && composer -V
- composer require "orchestra/testbench:${TESTBENCH_VERSION}" --no-update -v

install:
- travis_retry composer update --prefer-dist
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Via Composer
composer require lykegenes/laravel-locale-switcher
```

Then, add this to your Service Providers :
Then, add this to your Service Providers (It should be done automa) :
``` php
Lykegenes\LocaleSwitcher\ServiceProvider::class,
```
Expand Down
20 changes: 14 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
}
],
"require": {
"illuminate/support": "~5.1",
"illuminate/http": "~5.1"
"illuminate/support": "^6.2",
"illuminate/http": "^6.2"
},
"require-dev": {
"phpunit/phpunit": "~6.0 || ~7.0",
"mockery/mockery": "~1.1",
"phpunit/phpunit": "^8.0",
"mockery/mockery": "^1.0",
"php-coveralls/php-coveralls": "~1.0",
"orchestra/testbench": "~3.5"
"orchestra/testbench": "^4.0"
},
"autoload": {
"psr-4": {
Expand All @@ -37,7 +37,15 @@
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"laravel": {
"providers": [
"Lykegenes\\LocaleSwitcher\\ServiceProvider"
],
"aliases": {
"LocaleSwitcher": "Lykegenes\\LocaleSwitcher\\Facades\\LocaleSwitcher"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
Expand Down
3 changes: 0 additions & 3 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
<testsuites>
<testsuite name="Lykegenes Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<testsuites>
<testsuite name="Integration">
<directory>./tests/Integration</directory>
</testsuite>
Expand Down
4 changes: 2 additions & 2 deletions tests/Drivers/BrowserDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BrowserDriverTest extends Orchestra\Testbench\TestCase
*/
protected $browserDriver;

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

Expand All @@ -29,7 +29,7 @@ public function setUp()
$this->browserDriver = new BrowserDriver($this->request, $this->configManager);
}

public function tearDown()
public function tearDown(): void
{
parent::tearDown();

Expand Down
4 changes: 2 additions & 2 deletions tests/Drivers/RequestDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RequestDriverTest extends Orchestra\Testbench\TestCase
*/
protected $requestDriver;

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

Expand All @@ -23,7 +23,7 @@ public function setUp()
$this->requestDriver = new RequestDriver($this->request);
}

public function tearDown()
public function tearDown(): void
{
parent::tearDown();

Expand Down
4 changes: 2 additions & 2 deletions tests/Drivers/SessionDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SessionDriverTest extends Orchestra\Testbench\TestCase
*/
protected $sessionDriver;

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

Expand All @@ -23,7 +23,7 @@ public function setUp()
$this->sessionDriver = new SessionDriver($this->session);
}

public function tearDown()
public function tearDown(): void
{
parent::tearDown();

Expand Down

0 comments on commit 7bc164e

Please sign in to comment.