File tree 3 files changed +10
-8
lines changed 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 8
8
"homepage" : " https://github.com/sebdesign/laravel-sri" ,
9
9
"type" : " library" ,
10
10
"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 "
13
13
},
14
14
"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 "
18
18
},
19
19
"autoload" : {
20
20
"files" : [
Original file line number Diff line number Diff line change @@ -75,13 +75,14 @@ public function it_accepts_different_algorithms()
75
75
76
76
/**
77
77
* @test
78
- * @expectedException \InvalidArgumentException
79
- * @expectedExceptionMessage sha1024
80
78
*/
81
79
public function it_does_not_accept_invalid_algorithms ()
82
80
{
83
81
// arrange
84
82
83
+ $ this ->expectException (\InvalidArgumentException::class);
84
+ $ this ->expectExceptionMessage ('sha1024 ' );
85
+
85
86
$ css = $ this ->getCss ();
86
87
$ this ->app ['config ' ]->set ('sri.algorithms ' , ['sha512 ' , 'sha1024 ' ]);
87
88
$ hasher = $ this ->app ->make (Hasher::class);
Original file line number Diff line number Diff line change @@ -49,10 +49,11 @@ public function it_accepts_options()
49
49
50
50
/**
51
51
* @test
52
- * @expectedException \InvalidArgumentException
53
52
*/
54
53
public function it_fails_if_a_file_does_not_exist ()
55
54
{
55
+ $ this ->expectException (\InvalidArgumentException::class);
56
+
56
57
$ hasher = $ this ->app ->make (Hasher::class);
57
58
58
59
integrity ('app.min.css ' );
You can’t perform that action at this time.
0 commit comments