File tree Expand file tree Collapse file tree 4 files changed +16
-15
lines changed Expand file tree Collapse file tree 4 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 11language : php
22
33php :
4- - 7.0
5- - 7.1
4+ - 7.2
5+ - 7.3
6+ - 7.4
67
78before_script : composer install
89
Original file line number Diff line number Diff line change 1010 }
1111 ],
1212 "require" : {
13- "php" : " >=7.0 " ,
14- "illuminate/support" : " ^5.4 " ,
15- "illuminate/database" : " ^5.4 " ,
16- "illuminate/validation" : " ^5.4 "
13+ "php" : " >=7.2 " ,
14+ "illuminate/support" : " ^6.0 " ,
15+ "illuminate/database" : " ^6.0 " ,
16+ "illuminate/validation" : " ^6.0 "
1717 },
1818 "require-dev" : {
19- "phpunit/phpunit" : " ^6.0" ,
19+ "phpunit/phpunit" : " ^6.0 || ^7.0 ||^8.0 " ,
2020 "mockery/mockery" : " ^0.9.9" ,
2121 "squizlabs/php_codesniffer" : " ^2.8" ,
2222 "satooshi/php-coveralls" : " ^1.0"
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ $ composer require jaspaul/eloquent-model-validation
1919
2020The following versions of PHP are supported by this version.
2121
22- * PHP 7.0
23- * PHP 7.1
22+ * PHP 7.2
23+ * PHP 7.3
24+ * PHP 7.4
2425
2526## Configuration
2627
Original file line number Diff line number Diff line change 77use PDOStatement ;
88use Tests \Doubles \InvalidModel ;
99use Illuminate \Database \SQLiteConnection ;
10+ use Illuminate \Validation \ValidationException ;
1011use Illuminate \Database \ConnectionResolverInterface ;
1112use Illuminate \Database \Eloquent \Model as EloquentModel ;
1213use Jaspaul \EloquentModelValidation \Contracts \Validatable ;
@@ -35,20 +36,18 @@ public function testGetErrorsReturnsAMessageBagWithTheEmailKey()
3536 $ this ->assertTrue ($ errors ->has ('email ' ));
3637 }
3738
38- /**
39- * @expectedException \Illuminate\Validation\ValidationException
40- */
4139 public function testSaveThrowsAValidationException ()
4240 {
41+ $ this ->expectException (ValidationException::class);
42+
4343 $ model = new InvalidModel ();
4444 $ model ->save ();
4545 }
4646
47- /**
48- * @expectedException \Illuminate\Validation\ValidationException
49- */
5047 public function testValidateThrowsAValidationException ()
5148 {
49+ $ this ->expectException (ValidationException::class);
50+
5251 $ model = new InvalidModel ();
5352 $ model ->validate ();
5453 }
You can’t perform that action at this time.
0 commit comments