1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 09:54:05 +00:00

assertArraySubset() is deprecated

This commit is contained in:
Samuel Štancl 2019-02-27 17:39:39 +01:00
parent 2ebf4d516f
commit d527191b89
2 changed files with 6 additions and 1 deletions

View file

@ -102,4 +102,9 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
// set one of these environment vars on their computer.
return env('CI') && env('TRAVIS') && env('CONTINUOUS_INTEGRATION');
}
public function assertArrayIsSubset($subset, $array, string $message = ''): void
{
parent::assertTrue(array_intersect($subset, $array) == $subset, $message);
}
}