I see UT errors in PHP webapp running in Travis CI against PHP nightly:
$ php --version
PHP 7.2.0-dev (cli) (built: Dec 4 2016 22:49:34) ( ZTS )
This is a failed test case:
$payments = PaymentsHelper::refunds('DE0000000001', '2016-04-01', '2017-04-01');
$this->assertNotNull($payments);
$this->assertEquals(0, count($payments));
Test Failure
1) PaymentsHelperTest::test_refunds_within_lifetime
count(): Parameter must be an array or an object that implements Countable
The code we are checking currently contains debugging logs showing that the return value is refunds()indeed an array:
Array
(
[0] => Payment Object
(
...
)
)
Am I finding a bug in PHP at night?
source
share