Skip to content

Commit

Permalink
Merge pull request #25 from mikebronner/patch-1
Browse files Browse the repository at this point in the history
Add Laravel 6.0 compatibility.
  • Loading branch information
jenssegers committed Sep 5, 2019
2 parents eedaeed + bf058fd commit b69c870
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
/vendor
phpunit.phar
composer.lock
composer.lock
.phpunit.result.cache
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- 7.1
- 7.2
- 7.3

sudo: false

Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
}
],
"require": {
"php": ">=5.4.0",
"illuminate/support": "^4.0|^5.0",
"illuminate/contracts": "^5.0"
"illuminate/contracts": "5.0 - 6.0",
"illuminate/support": "4.0 - 6.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0|^5.0",
"satooshi/php-coveralls": "^0.6"
"php-coveralls/php-coveralls": "*",
"phpunit/phpunit": "^4.0|^5.0"
},
"autoload": {
"psr-4": {
Expand Down
17 changes: 8 additions & 9 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="true"
syntaxCheck="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="true"
>
<testsuites>
<testsuite name="Test Suite">
Expand Down
6 changes: 4 additions & 2 deletions tests/ModelTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class ModelTest extends PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class ModelTest extends TestCase
{
public function testAttributeManipulation()
{
Expand Down Expand Up @@ -234,7 +236,7 @@ public function testGuardedCallback()

public function testTotallyGuarded()
{
$this->setExpectedException('Jenssegers\Model\MassAssignmentException');
$this->expectException('Jenssegers\Model\MassAssignmentException');

$model = new ModelStub();
$model->guard(['*']);
Expand Down

0 comments on commit b69c870

Please sign in to comment.