diff --git a/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php b/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php index e66096c63..0a2faa3a2 100644 --- a/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php +++ b/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php @@ -338,15 +338,11 @@ abstract class AbstractAggregatorTest extends KernelTestCase .'is a string or an be converted to a string', $key) ); - $this->assertTrue( - // conditions - \is_string((string) \call_user_func($closure, '_header')) - && !empty(\call_user_func($closure, '_header')) - && '_header' !== \call_user_func($closure, '_header'), - // message - sprintf('Test that the callable return by `getLabels` for key %s ' - .'can provide an header', $key) - ); + $head = \call_user_func($closure, '_header'); + + self::assertIsString($head); + self::assertNotEquals('', $head); + self::assertNotEquals('_header', $head); } }