I am sure the array I test is null. Even doing var_dump(array) prints array(0) {
}.
But the test $this->assertNull($array); fails.
On the contrary when I test below code it enters if condition :
if ($array == null) {
echo "Entered";
} else {
echo "Not Entered";
}
I don't understand why this is so. Please explain me if any one know the reason.