Skip to content

Commit b396e16

Browse files
Replace custom array subset array with package
1 parent e31c7f1 commit b396e16

File tree

3 files changed

+5
-46
lines changed

3 files changed

+5
-46
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
],
2626
"require": {
2727
"php": "^7.2",
28+
"dms/phpunit-arraysubset-asserts": "^0.1.0",
2829
"laravel/framework": "~5.8.0",
2930
"nesbot/carbon": "^1.22.1|^2.0"
3031
},

tests/Assert.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

tests/Feature/BooleanArrayTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
namespace SebastiaanLuca\BooleanDates\Tests\Feature;
66

77
use Carbon\Carbon;
8-
use SebastiaanLuca\BooleanDates\Tests\Assert;
8+
use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts;
99
use SebastiaanLuca\BooleanDates\Tests\resources\TestModel;
1010
use SebastiaanLuca\BooleanDates\Tests\TestCase;
1111

1212
class BooleanArrayTest extends TestCase
1313
{
14+
use ArraySubsetAsserts;
15+
1416
/**
1517
* @test
1618
*/
@@ -59,7 +61,7 @@ public function it returns all attributes() : void
5961
'agreed_to_something_at' => null,
6062
];
6163

62-
Assert::assertArraySubset(
64+
ArraySubsetAsserts::assertArraySubset(
6365
$expected,
6466
$model->toArray()
6567
);

0 commit comments

Comments
 (0)