Skip to content

Commit

Permalink
Merge pull request #43 from pxpm/master
Browse files Browse the repository at this point in the history
L10 support
  • Loading branch information
tabacitu authored Feb 1, 2023
2 parents b2880e2 + f5cbaa1 commit 33e86d1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
}
],
"require": {
"illuminate/config": "~9",
"illuminate/session": "~9",
"illuminate/support": "~9"
"illuminate/config": "~9|^10",
"illuminate/session": "~9|^10",
"illuminate/support": "~9|^10"
},
"require-dev": {
"phpunit/phpunit": "~4.1",
"mockery/mockery": "~0.9"
"phpunit/phpunit": "^9",
"mockery/mockery": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
<testsuites>
<testsuite name="Package Test Suite">
Expand Down
7 changes: 5 additions & 2 deletions tests/AlertsMessageBagTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

namespace Prologue\Alerts\Tests;

use Illuminate\Support\MessageBag;
use Mockery as m;
use Prologue\Alerts\AlertsMessageBag;

class AlertsMessageBagTest extends \PHPUnit_Framework_TestCase
class AlertsMessageBagTest extends \PHPUnit\Framework\TestCase
{
public $session;

Expand All @@ -20,7 +21,7 @@ class AlertsMessageBagTest extends \PHPUnit_Framework_TestCase

public $sessionKey = 'alert_messages';

public function tearDown()
public function tearDown(): void
{
m::close();
}
Expand Down Expand Up @@ -72,6 +73,8 @@ public function testIncorrectLevel()

$this->config->shouldReceive('get')->once()->andReturn($this->levels);

$this->expectException('BadMethodCallException');

$bag->debug('foo');
}

Expand Down

0 comments on commit 33e86d1

Please sign in to comment.