public function test_getTreeByCalcId() { /** === Test Data === */ $CALC_ID = 2; $RESULT = []; /** === Mock object itself === */ $this->obj = \Mockery::mock(Compress::class . '[get]', $this->objArgs); /** === Setup Mocks === */ // $result = $this->get($where); $this->obj->shouldReceive('get')->once()->andReturn($RESULT); /** === Call and asserts === */ $res = $this->obj->getTreeByCalcId($CALC_ID); }
public function test_getTreeByCalcId() { $CALC_ID = 2; $res = $this->_obj->getTreeByCalcId($CALC_ID); $this->assertTrue(is_array($res)); }