public function test_aroundGetStockId() { /** === Test Data === */ $RESULT = 21; /** === Setup Mocks === */ $mProceed = function () { }; // $result = $subject->getData(Cfg::E_CATINV_STOCK_ITEM_A_STOCK_ID); $this->mSubject->shouldReceive('getData')->once()->with(\Praxigento\Core\Config::E_CATINV_STOCK_ITEM_A_STOCK_ID)->andReturn($RESULT); /** === Call and asserts === */ $res = $this->obj->aroundGetStockId($this->mSubject, $mProceed); $this->assertEquals($RESULT, $res); }