protected function initCommands() { $baseUrl = $this->baseUrl; $commands = parent::initCommands(); $commands['contexts'] = 'PHPUnit_Extensions_Selenium2TestCase_SessionCommand_GenericAccessor'; $commands['context'] = 'PHPUnit_Extensions_AppiumTestCase_SessionCommand_Context'; return $commands; }
/** * List of all supported commands. * * Keys are commands, value is either a class name or a closure. * * If you want to add some new WebDriver commands, this is the place. * @return array */ protected function initCommands() { $commands = parent::initCommands() + array('doubleclick' => 'PHPUnit_Extensions_Selenium2TestCase_ElementCommand_GenericPost'); return $commands; }