From 38f2c6ff0d3dfc497175a5cff5e24b3937f6e2c9 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Thu, 26 Apr 2018 13:09:18 -0300 Subject: [PATCH] Update to PHPUnit 7.1 (#511) --- composer.json | 2 +- tests/FormAccessibleTest.php | 6 +++--- tests/FormBuilderTest.php | 2 +- tests/HtmlBuilderTest.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 119fce8..72a47c1 100755 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "require-dev": { "illuminate/database": "5.6.*", "mockery/mockery": "~1.0", - "phpunit/phpunit": "~5.4" + "phpunit/phpunit": "~7.1" }, "autoload": { "psr-4": { diff --git a/tests/FormAccessibleTest.php b/tests/FormAccessibleTest.php index 6a73728..3471d1e 100644 --- a/tests/FormAccessibleTest.php +++ b/tests/FormAccessibleTest.php @@ -12,7 +12,7 @@ use Illuminate\Routing\UrlGenerator; use Illuminate\Database\Capsule\Manager as Capsule; use Mockery as m; -class FormAccessibleTest extends PHPUnit_Framework_TestCase +class FormAccessibleTest extends PHPUnit\Framework\TestCase { public function setUp() { @@ -74,12 +74,12 @@ class FormAccessibleTest extends PHPUnit_Framework_TestCase $model = new ModelThatUsesForms($this->modelData); $this->assertEquals($model->getFormValue('address.street'), 'abcde st'); } - + public function testItCanUseGetAccessorValuesWhenThereAreNoFormAccessors() { $model = new ModelThatUsesForms($this->modelData); $this->formBuilder->setModel($model); - + $this->assertEquals($this->formBuilder->getValueAttribute('email'), 'mutated@tjshafer.com'); } diff --git a/tests/FormBuilderTest.php b/tests/FormBuilderTest.php index ced7c3b..5e15afd 100644 --- a/tests/FormBuilderTest.php +++ b/tests/FormBuilderTest.php @@ -11,7 +11,7 @@ use Illuminate\Support\Facades\App; use Illuminate\Session\Store; use Mockery as m; -class FormBuilderTest extends PHPUnit_Framework_TestCase +class FormBuilderTest extends PHPUnit\Framework\TestCase { /** * @var FormBuilder diff --git a/tests/HtmlBuilderTest.php b/tests/HtmlBuilderTest.php index 3cb6029..a5a9ee2 100644 --- a/tests/HtmlBuilderTest.php +++ b/tests/HtmlBuilderTest.php @@ -7,7 +7,7 @@ use Illuminate\Routing\RouteCollection; use Illuminate\Routing\UrlGenerator; use Mockery as m; -class HtmlBuilderTest extends PHPUnit_Framework_TestCase +class HtmlBuilderTest extends PHPUnit\Framework\TestCase { /**