public function test_getQueryToSelectCount() { /** === Test Data === */ $RESULT = 'result'; /** === Setup Mocks === */ // $result = $this->_factorySelect->getQueryToSelectCount(); $this->mFactorySelect->shouldReceive('getQueryToSelectCount')->once()->andReturn($RESULT); /** === Call and asserts === */ $res = $this->obj->getQueryToSelectCount(); $this->assertEquals($RESULT, $res); }