Skip to content

Commit 096bdec

Browse files
committed
Add support for Laravel 6.0
1 parent 6bc0c3b commit 096bdec

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"homepage": "https://github.com/sebdesign/laravel-sri",
99
"type": "library",
1010
"require": {
11-
"php": "^5.6.4|^7.0",
12-
"laravel/framework": "~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0"
11+
"php": "^7.0",
12+
"laravel/framework": "~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0"
1313
},
1414
"require-dev": {
15-
"phpunit/phpunit": "~5.4|~6.0|~7.0",
16-
"mockery/mockery": "^0.9|^1.0",
17-
"orchestra/testbench": "~3.3|~3.4|~3.5|~3.6|~3.7|~3.8"
15+
"phpunit/phpunit": "~6.0|~7.0",
16+
"mockery/mockery": "^1.0",
17+
"orchestra/testbench": "~3.3|~3.4|~3.5|~3.6|~3.7|~3.8|~3.9"
1818
},
1919
"autoload": {
2020
"files": [

tests/HasherTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ public function it_accepts_different_algorithms()
7575

7676
/**
7777
* @test
78-
* @expectedException \InvalidArgumentException
79-
* @expectedExceptionMessage sha1024
8078
*/
8179
public function it_does_not_accept_invalid_algorithms()
8280
{
8381
// arrange
8482

83+
$this->expectException(\InvalidArgumentException::class);
84+
$this->expectExceptionMessage('sha1024');
85+
8586
$css = $this->getCss();
8687
$this->app['config']->set('sri.algorithms', ['sha512', 'sha1024']);
8788
$hasher = $this->app->make(Hasher::class);

tests/HelpersTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ public function it_accepts_options()
4949

5050
/**
5151
* @test
52-
* @expectedException \InvalidArgumentException
5352
*/
5453
public function it_fails_if_a_file_does_not_exist()
5554
{
55+
$this->expectException(\InvalidArgumentException::class);
56+
5657
$hasher = $this->app->make(Hasher::class);
5758

5859
integrity('app.min.css');

0 commit comments

Comments
 (0)