Posted inPHP
PHPUnit function toArray() of mocked ArrayCollection returns null
PHPUnit function toArray() of mocked ArrayCollection returns null The toArray() function of the ArrayCollection class in PHPUnit returns null when called on a mocked instance of the class. This is…