Skip to content

Commit

Permalink
Add support for Laravel 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdesign committed Aug 6, 2019
1 parent 6bc0c3b commit 096bdec
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 @@ -8,13 +8,13 @@
"homepage": "https://github.com/sebdesign/laravel-sri",
"type": "library",
"require": {
"php": "^5.6.4|^7.0",
"laravel/framework": "~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0"
"php": "^7.0",
"laravel/framework": "~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0"
},
"require-dev": {
"phpunit/phpunit": "~5.4|~6.0|~7.0",
"mockery/mockery": "^0.9|^1.0",
"orchestra/testbench": "~3.3|~3.4|~3.5|~3.6|~3.7|~3.8"
"phpunit/phpunit": "~6.0|~7.0",
"mockery/mockery": "^1.0",
"orchestra/testbench": "~3.3|~3.4|~3.5|~3.6|~3.7|~3.8|~3.9"
},
"autoload": {
"files": [
Expand Down
5 changes: 3 additions & 2 deletions tests/HasherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,14 @@ public function it_accepts_different_algorithms()

/**
* @test
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage sha1024
*/
public function it_does_not_accept_invalid_algorithms()
{
// arrange

$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('sha1024');

$css = $this->getCss();
$this->app['config']->set('sri.algorithms', ['sha512', 'sha1024']);
$hasher = $this->app->make(Hasher::class);
Expand Down
3 changes: 2 additions & 1 deletion tests/HelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ public function it_accepts_options()

/**
* @test
* @expectedException \InvalidArgumentException
*/
public function it_fails_if_a_file_does_not_exist()
{
$this->expectException(\InvalidArgumentException::class);

$hasher = $this->app->make(Hasher::class);

integrity('app.min.css');
Expand Down

0 comments on commit 096bdec

Please sign in to comment.