/** * Set up before test */ public function setUp() { $this->_getOpt = $this->getMock('Zend_Console_Getopt', array('getOption'), array(array())); $this->_getOpt->expects($this->any())->method('getOption')->will($this->returnValueMap(array(array(self::TEST_OPTION_NAME, self::TEST_OPTION_VALUE), array('xxx', null)))); \Magento\TestFramework\Helper\Cli::setOpt($this->_getOpt); }
/** * Set up before test * * @return void */ public function setUp() { $this->_getOpt = $this->getMock('Zend_Console_Getopt', ['getOption'], [[]]); $this->_getOpt->expects($this->any())->method('getOption')->will($this->returnValueMap([[self::TEST_OPTION_NAME, self::TEST_OPTION_VALUE], ['xxx', null]])); \Magento\ToolkitFramework\Helper\Cli::setOpt($this->_getOpt); }