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 1
1
language : php
2
2
3
3
php :
4
- - 7.0
5
- - 7.1
4
+ - 7.2
5
+ - 7.3
6
+ - 7.4
6
7
7
8
before_script : composer install
8
9
Original file line number Diff line number Diff line change 10
10
}
11
11
],
12
12
"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 "
17
17
},
18
18
"require-dev" : {
19
- "phpunit/phpunit" : " ^6.0" ,
19
+ "phpunit/phpunit" : " ^6.0 || ^7.0 ||^8.0 " ,
20
20
"mockery/mockery" : " ^0.9.9" ,
21
21
"squizlabs/php_codesniffer" : " ^2.8" ,
22
22
"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
19
19
20
20
The following versions of PHP are supported by this version.
21
21
22
- * PHP 7.0
23
- * PHP 7.1
22
+ * PHP 7.2
23
+ * PHP 7.3
24
+ * PHP 7.4
24
25
25
26
## Configuration
26
27
Original file line number Diff line number Diff line change 7
7
use PDOStatement ;
8
8
use Tests \Doubles \InvalidModel ;
9
9
use Illuminate \Database \SQLiteConnection ;
10
+ use Illuminate \Validation \ValidationException ;
10
11
use Illuminate \Database \ConnectionResolverInterface ;
11
12
use Illuminate \Database \Eloquent \Model as EloquentModel ;
12
13
use Jaspaul \EloquentModelValidation \Contracts \Validatable ;
@@ -35,20 +36,18 @@ public function testGetErrorsReturnsAMessageBagWithTheEmailKey()
35
36
$ this ->assertTrue ($ errors ->has ('email ' ));
36
37
}
37
38
38
- /**
39
- * @expectedException \Illuminate\Validation\ValidationException
40
- */
41
39
public function testSaveThrowsAValidationException ()
42
40
{
41
+ $ this ->expectException (ValidationException::class);
42
+
43
43
$ model = new InvalidModel ();
44
44
$ model ->save ();
45
45
}
46
46
47
- /**
48
- * @expectedException \Illuminate\Validation\ValidationException
49
- */
50
47
public function testValidateThrowsAValidationException ()
51
48
{
49
+ $ this ->expectException (ValidationException::class);
50
+
52
51
$ model = new InvalidModel ();
53
52
$ model ->validate ();
54
53
}
You can’t perform that action at this time.
0 commit comments