mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
DX: apply rector rulesset up to PHP72
This commit is contained in:
@@ -243,7 +243,7 @@ abstract class AbstractAggregatorTest extends KernelTestCase
|
||||
$result = $results[0];
|
||||
|
||||
$this->assertTrue(
|
||||
$result instanceof Traversable || is_array($result),
|
||||
is_iterable($result),
|
||||
'test that each row in the result is traversable or an array'
|
||||
);
|
||||
|
||||
|
@@ -230,7 +230,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
$result = $results[0];
|
||||
|
||||
$this->assertTrue(
|
||||
$result instanceof Traversable || is_array($result),
|
||||
is_iterable($result),
|
||||
'test that each row in the result is traversable or an array'
|
||||
);
|
||||
|
||||
|
@@ -38,7 +38,7 @@ trait PrepareCenterTrait
|
||||
}
|
||||
|
||||
$center = $this->centerProphet->prophesize();
|
||||
$center->willExtend('\Chill\MainBundle\Entity\Center');
|
||||
$center->willExtend('\\' . \Chill\MainBundle\Entity\Center::class);
|
||||
$center->getId()->willReturn($id);
|
||||
$center->getName()->willReturn($name);
|
||||
|
||||
|
@@ -38,7 +38,7 @@ trait PrepareCircleTrait
|
||||
}
|
||||
|
||||
$scope = $this->circleProphet->prophesize();
|
||||
$scope->willExtend('\Chill\MainBundle\Entity\Scope');
|
||||
$scope->willExtend('\\' . \Chill\MainBundle\Entity\Scope::class);
|
||||
$scope->getId()->willReturn($id);
|
||||
$scope->getName()->willReturn($name);
|
||||
|
||||
|
Reference in New Issue
Block a user