Closed robertmain closed 6 years ago
Turns out I'd written public function construct
instead of public function __construct
. Thus the constructor was never being called and was therefore never setting the adapter as the class property.
/headdesk
Issue
I am attempting to generate a mock of an abstract class, but
getMockForAbstractClass()
is returningNULL
. I can't find anything in the documentation to point to where I'm going wrong, but calling$this->adapter->get()
raisesError: Call to a member function get() on null
var_dump($this->adapter)
gets me this:Code
Unit Under Test
Test
Composer Info