public function testget_account() { error_reporting(E_ERROR | E_PARSE); $lead = new Lead(); //test without pre settting attributes $result = $lead->get_account(); $this->assertEquals(null, $result); //test with required attributes preset $lead->account_id = 1; $result = $lead->get_account(); $this->assertEquals(null, $result); }