tests: Replace assertions on count() == 0 with strict === []
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Mon, 30 Sep 2019 14:20:34 +0000 (16:20 +0200)
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Mon, 30 Sep 2019 14:20:34 +0000 (16:20 +0200)
commitcff596804a6582bf637b4bc28abc8d75d1e4d7f9
tree78a22d9f56737912ed467205b5087091e6a6a3f0
parent54b816976142fd9086a11a1e0e4fb6053d00082d
tests: Replace assertions on count() == 0 with strict === []

The benefit of using count() is that the test would still succeed if
the return vfalue is not an array, but an iterable object. It seems
this is not needed.

Change-Id: I23529f6990aebe0cce86e236a21820fe74993204
tests/phpunit/includes/api/ApiWatchTest.php
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php
tests/phpunit/includes/session/SessionBackendTest.php