/** * @return void */ public function setUp() { parent::setUp(); $this->sampleLocale = new \TYPO3\Flow\I18n\Locale('en_GB'); $this->mockObjectManagerReturnValues[\TYPO3\Flow\I18n\Locale::class] = $this->sampleLocale; $this->mockDatetimeParser = $this->getMock(\TYPO3\Flow\I18n\Parser\DatetimeParser::class); }
/** * @return void */ public function setUp() { parent::setUp(); $this->sampleLocale = new \TYPO3\Flow\I18n\Locale('en_GB'); $this->mockObjectManagerReturnValues['TYPO3\\Flow\\I18n\\Locale'] = $this->sampleLocale; $this->mockDatetimeParser = $this->getMock('TYPO3\\Flow\\I18n\\Parser\\DatetimeParser'); }
public function setUp() { parent::setUp(); $this->mockValidatorResolver = $this->getMockBuilder(\TYPO3\Flow\Validation\ValidatorResolver::class)->setMethods(array('createValidator', 'buildBaseValidatorConjunction'))->getMock(); $this->validator->_set('validatorResolver', $this->mockValidatorResolver); }
/** * @return void */ public function setUp() { parent::setUp(); $this->sampleLocale = new \TYPO3\Flow\I18n\Locale('en_GB'); $this->mockNumberParser = $this->createMock(\TYPO3\Flow\I18n\Parser\NumberParser::class); }
public function setUp() { parent::setUp(); $this->mockValidatorResolver = $this->getMock(\TYPO3\Flow\Validation\ValidatorResolver::class, array('createValidator', 'buildBaseValidatorConjunction'), array(), '', false); $this->validator->_set('validatorResolver', $this->mockValidatorResolver); }
public function setUp() { parent::setUp(); $this->mockValidatorResolver = $this->getMock(\TYPO3\Flow\Validation\ValidatorResolver::class, array(), array(), '', FALSE); $this->validator->_set('validatorResolver', $this->mockValidatorResolver); }
/** * @return void */ public function setUp() { parent::setUp(); $this->sampleLocale = new \TYPO3\Flow\I18n\Locale('en_GB'); $this->mockNumberParser = $this->getMock('TYPO3\\Flow\\I18n\\Parser\\NumberParser'); }