Skip to content

Commit 79afb25

Browse files
authored
Add support for Laravel 6 (#39)
* Add support for Laravel 6 * drop support for PHP < 7.2 * styleci linting has been deprecated * updated phpunit and testbench * Switch to new symantic versioning for Laravel
1 parent 3672bad commit 79afb25

6 files changed

+13
-15
lines changed

.phpunit.result.cache

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:37:"PHPUnit\Runner\DefaultTestResultCache":1464:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:22:{s:53:"Tests\BotManTesterTest::it_can_fake_incoming_messages";d:0.011;s:52:"Tests\BotManTesterTest::it_can_fake_user_information";d:0;s:45:"Tests\BotManTesterTest::it_can_assert_replies";d:0;s:53:"Tests\BotManTesterTest::it_can_assert_replies_are_not";d:0;s:61:"Tests\BotManTesterTest::it_can_assert_replies_are_in_an_array";d:0;s:65:"Tests\BotManTesterTest::it_can_assert_replies_are_not_in_an_array";d:0;s:53:"Tests\BotManTesterTest::it_can_assert_generic_replies";d:0;s:61:"Tests\BotManTesterTest::it_can_assert_replies_are_not_present";d:0;s:49:"Tests\BotManTesterTest::it_can_assert_raw_replies";d:0;s:54:"Tests\BotManTesterTest::it_can_assert_multiple_replies";d:0;s:54:"Tests\BotManTesterTest::it_can_assert_a_template_class";d:0;s:55:"Tests\BotManTesterTest::it_can_assert_a_template_object";d:0.001;s:63:"Tests\BotManTesterTest::it_can_assert_a_template_is_in_an_array";d:0;s:67:"Tests\BotManTesterTest::it_can_assert_a_template_is_not_in_an_array";d:0;s:56:"Tests\BotManTesterTest::it_can_fake_interactive_messages";d:0.008;s:45:"Tests\BotManTesterTest::it_can_fake_locations";d:0;s:42:"Tests\BotManTesterTest::it_can_fake_images";d:0;s:42:"Tests\BotManTesterTest::it_can_fake_videos";d:0;s:41:"Tests\BotManTesterTest::it_can_fake_audio";d:0;s:41:"Tests\BotManTesterTest::it_can_fake_files";d:0;s:42:"Tests\BotManTesterTest::it_can_fake_events";d:0;s:45:"Tests\BotManTesterTest::it_can_test_questions";d:0.009;}}}

.styleci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ preset: laravel
22

33
enabled:
44
- unalign_double_arrow
5-
6-
linting: true

.travis.yml

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

33
php:
4-
- 7.0
5-
- 7.1
4+
- 7.2
5+
- 7.3
66

77
before_script:
88
- travis_retry composer self-update --preview
@@ -16,4 +16,4 @@ before_install:
1616
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
1717

1818
after_success:
19-
- codecov
19+
- codecov

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=7.0",
18+
"php": "^7.2",
1919
"botman/botman": "~2.0|~3.0",
2020
"guzzlehttp/guzzle": "~6.0",
21-
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0",
22-
"illuminate/contracts": "~5.5.0|~5.6.0|~5.7.0|~5.8.0",
23-
"illuminate/console": "~5.5.0|~5.6.0|~5.7.0|~5.8.0",
21+
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0",
22+
"illuminate/contracts": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0",
23+
"illuminate/console": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0",
2424
"thecodingmachine/discovery": "^1.2"
2525
},
2626
"require-dev": {
27-
"phpunit/phpunit": "~6.0",
28-
"orchestra/testbench": "~3.5.0",
27+
"orchestra/testbench": "^3.6|^3.7|^3.8|^4.0",
28+
"phpunit/phpunit": "^7.0|^8.0",
2929
"mockery/mockery": "dev-master"
3030
},
3131
"autoload": {

phpunit.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
>
1312
<testsuites>
1413
<testsuite name="Package Test Suite">
@@ -20,4 +19,4 @@
2019
<directory suffix=".php">src/</directory>
2120
</whitelist>
2221
</filter>
23-
</phpunit>
22+
</phpunit>

tests/BotManTesterTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ class BotManTesterTest extends TestCase
3737
/** @var BotMan */
3838
protected $botman;
3939

40-
public function tearDown()
40+
public function tearDown() : void
4141
{
4242
m::close();
4343
}
4444

45-
protected function setUp()
45+
protected function setUp() :void
4646
{
4747
parent::setUp();
4848

0 commit comments

Comments
 (0)