Skip to content

Commit bb4ce1d

Browse files
authored
Update package to support Laravel 12 │ (#22)
1 parent 36a43d0 commit bb4ce1d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"require": {
1515
"php": ">=7.0",
1616
"guzzlehttp/guzzle": "^6.3 || ^6.5 || ^7.0",
17-
"illuminate/events": "~5.5 || ~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0 || ^11.0",
18-
"illuminate/notifications": "~5.5 || ~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0 || ^11.0",
19-
"illuminate/support": "~5.5 || ~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0 || ^11.0"
17+
"illuminate/events": "~5.5 || ~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0 || ^11.0 || ^12.0",
18+
"illuminate/notifications": "~5.5 || ~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0 || ^11.0 || ^12.0",
19+
"illuminate/support": "~5.5 || ~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0 || ^11.0 || ^12.0"
2020
},
2121
"require-dev": {
2222
"mockery/mockery": "^0.9.5 || ^1.6",

tests/FortySixElksChannelTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use NotificationChannels\FortySixElks\FortySixElksChannel;
99
use NotificationChannels\FortySixElks\FortySixElksSMS;
1010

11-
class FortySixElksChannelTest extends \PHPUnit_Framework_TestCase
11+
class FortySixElksChannelTest extends \PHPUnit\Framework\TestCase
1212
{
1313
protected $dispatcher;
1414

@@ -20,7 +20,7 @@ class FortySixElksChannelTest extends \PHPUnit_Framework_TestCase
2020

2121
protected $smsMessage;
2222

23-
public function setUp()
23+
public function setUp(): void
2424
{
2525
parent::setUp();
2626
$this->dispatcher = new \Illuminate\Events\Dispatcher();

tests/FortySixElksMediaTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use NotificationChannels\FortySixElks\FortySixElksMMS;
66
use NotificationChannels\FortySixElks\FortySixElksSMS;
77

8-
class FortySixElksMediaTest extends \PHPUnit_Framework_TestCase
8+
class FortySixElksMediaTest extends \PHPUnit\Framework\TestCase
99
{
1010
public function testSMSTest()
1111
{
@@ -14,7 +14,7 @@ public function testSMSTest()
1414

1515
//test content
1616
$this->assertInstanceOf(FortySixElksSMS::class, $class->line('test line'));
17-
$this->assertContains('test', $class->getContent());
17+
$this->assertStringContainsString('test', $class->getContent());
1818
}
1919

2020
public function testMMSTest()
@@ -25,6 +25,6 @@ public function testMMSTest()
2525

2626
//test content
2727
$this->assertInstanceOf(FortySixElksMMS::class, $class->line('test line'));
28-
$this->assertContains('test', $class->getContent());
28+
$this->assertStringContainsString('test', $class->getContent());
2929
}
3030
}

0 commit comments

Comments
 (0)