File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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 ' );
You can’t perform that action at this time.
0 commit comments