Skip to content

Commit 41b455a

Browse files
authored
Merge pull request #1 from Jaspaul/master
Merge main repo back into fork
2 parents dec7aa1 + 201329a commit 41b455a

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
language: php
22

33
php:
4-
- 7.0
5-
- 7.1
4+
- 7.2
5+
- 7.3
6+
- 7.4
67

78
before_script: composer install
89

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
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"

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ $ composer require jaspaul/eloquent-model-validation
1919

2020
The 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

tests/InvalidModelTest.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use PDOStatement;
88
use Tests\Doubles\InvalidModel;
99
use Illuminate\Database\SQLiteConnection;
10+
use Illuminate\Validation\ValidationException;
1011
use Illuminate\Database\ConnectionResolverInterface;
1112
use Illuminate\Database\Eloquent\Model as EloquentModel;
1213
use 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
}

0 commit comments

Comments
 (0)