Skip to content

Commit 91bc4de

Browse files
authored
Update composer versions and tests (#47)
* Update versions * Update travis PHP versions * Update tests * Dont generate coverage reports
1 parent ade22d7 commit 91bc4de

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.travis.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: php
22

33
php:
4-
- 5.6
5-
- 7.0
6-
- 7.1
74
- 7.2
5+
- 7.3
6+
- 7.4
87
- nightly
98

109
matrix:
@@ -20,4 +19,4 @@ before_script:
2019
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
2120

2221
script:
23-
- vendor/bin/phpunit
22+
- vendor/bin/phpunit --no-coverage

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
}
1616
],
1717
"require": {
18-
"composer/composer": "~1.4"
18+
"composer/composer": ">=1.4"
1919
},
2020
"require-dev": {
21-
"orchestra/testbench": "~3.0",
22-
"phpunit/phpunit": "^6.2|^5.6"
21+
"orchestra/testbench": ">=3.0",
22+
"phpunit/phpunit": ">=5.6"
2323
},
2424
"autoload": {
2525
"psr-4": {

tests/HooksTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class HooksTest extends TestCase
1414
{
1515
const COMPOSER_REPOSITORY = 'https://testing.larapack.io';
1616

17-
public function setUp()
17+
public function setUp(): void
1818
{
1919
// Set Hooks environment
2020
Hooks::setMemoryLimit('5G');

tests/TestCase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected function getPackageProviders($app)
1616
/**
1717
* Setup the test environment.
1818
*/
19-
public function setUp()
19+
public function setUp(): void
2020
{
2121
parent::setUp();
2222

@@ -65,7 +65,7 @@ public function setUp()
6565
$this->artisan('migrate');
6666
}
6767

68-
public function tearDown()
68+
public function tearDown(): void
6969
{
7070
// Cleanup old hooks before testing
7171
app(Filesystem::class)->deleteDirectory(base_path('hooks'));

0 commit comments

Comments
 (0)