Skip to content

Commit 847c1b8

Browse files
authored
Merge pull request #5 from atymic/laravel-6
feat: laravel 6 support
2 parents a415dd4 + 3389f70 commit 847c1b8

11 files changed

+22
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/vendor
22
/build
33
/composer.lock
4+
.phpunit.result.cache

.styleci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
preset: laravel
2-
3-
linting: true

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ cache:
55
- $HOME/.composer/cache
66

77
php:
8-
- 5.6.4
9-
- 7.0
10-
- 7.1
11-
- nightly
8+
- 7.2
9+
- 7.3
1210

1311
env:
1412
matrix:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Smsapi notifications channel for Laravel 5.3+
1+
# Smsapi notifications channel for Laravel
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/laravel-notification-channels/smsapi.svg)](https://packagist.org/packages/laravel-notification-channels/smsapi)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)
@@ -9,7 +9,7 @@
99
[![Total Downloads](https://poser.pugx.org/laravel-notification-channels/smsapi/downloads)](https://packagist.org/packages/laravel-notification-channels/smsapi)
1010
[![PHP 7 ready](http://php7ready.timesplinter.ch/laravel-notification-channels/smsapi/badge.svg)](https://travis-ci.org/laravel-notification-channels/smsapi)
1111

12-
This package makes it easy to send notifications using [Smsapi](https://www.smsapi.pl/) with Laravel 5.3+.
12+
This package makes it easy to send notifications using [Smsapi](https://www.smsapi.pl/) with Laravel 5.5+ & 6.x.
1313

1414
## Contents
1515

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=5.6.4",
16-
"illuminate/notifications": "^5.3",
17-
"illuminate/support": "^5.3",
15+
"php": ">=7.1",
16+
"illuminate/notifications": "~5.5 || ~6.0",
17+
"illuminate/support": "~5.5 || ~6.0",
1818
"smsapi/php-client": "^1.8"
1919
},
2020
"require-dev": {
21-
"mockery/mockery": "^0.9.5",
22-
"phpunit/phpunit": "^5.4"
21+
"mockery/mockery": "^1.0",
22+
"phpunit/phpunit": "^8.0"
2323
},
2424
"autoload": {
2525
"psr-4": {

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<logging>
2323
<log type="tap" target="build/report.tap"/>
2424
<log type="junit" target="build/report.junit.xml"/>
25-
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
25+
<log type="coverage-html" target="build/coverage"/>
2626
<log type="coverage-text" target="build/coverage.txt"/>
2727
<log type="coverage-clover" target="build/logs/clover.xml"/>
2828
</logging>

tests/SmsapiClientTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
namespace NotificationChannels\Smsapi\Tests;
44

55
use Mockery;
6-
use SMSApi\Client;
7-
use SMSApi\Proxy\Http\AbstractHttp as Proxy;
86
use NotificationChannels\Smsapi\SmsapiClient;
97
use NotificationChannels\Smsapi\SmsapiSmsMessage;
8+
use PHPUnit\Framework\TestCase;
9+
use SMSApi\Client;
10+
use SMSApi\Proxy\Http\AbstractHttp as Proxy;
1011

1112
/**
1213
* @internal
1314
* @coversDefaultClass SmsapiClient
1415
*/
15-
class SmsapiClientTest extends \PHPUnit_Framework_TestCase
16+
class SmsapiClientTest extends TestCase
1617
{
1718
/**
1819
* @var Proxy
@@ -24,7 +25,7 @@ class SmsapiClientTest extends \PHPUnit_Framework_TestCase
2425
*/
2526
private $client;
2627

27-
public function setUp()
28+
public function setUp():void
2829
{
2930
parent::setUp();
3031
$this->proxy = Mockery::mock(Proxy::class)->makePartial()->shouldAllowMockingProtectedMethods();

tests/SmsapiMessageTest.php

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

33
namespace NotificationChannels\Smsapi\Tests;
44

5-
use stdClass;
65
use InvalidArgumentException;
76
use NotificationChannels\Smsapi\SmsapiMessage;
7+
use PHPUnit\Framework\TestCase;
8+
use stdClass;
89

910
/**
1011
* @internal
1112
* @coversDefaultClass \NotificationChannels\Smsapi\SmsapiMessage
1213
*/
13-
abstract class SmsapiMessageTest extends \PHPUnit_Framework_TestCase
14+
abstract class SmsapiMessageTest extends TestCase
1415
{
1516
/**
1617
* @var SmsapiMessage

tests/SmsapiMmsMessageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class SmsapiMmsMessageTest extends SmsapiMessageTest
1313
{
14-
public function setUp()
14+
public function setUp(): void
1515
{
1616
parent::setUp();
1717
$this->message = new SmsapiMmsMessage();

tests/SmsapiSmsMessageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class SmsapiSmsMessageTest extends SmsapiMessageTest
1313
{
14-
public function setUp()
14+
public function setUp(): void
1515
{
1616
parent::setUp();
1717
$this->message = new SmsapiSmsMessage();

0 commit comments

Comments
 (0)