コード例 #1
0
 /**
  * Test description.
  *
  * @return void
  */
 public function testGetTestStatusShared()
 {
     $test_case = m::mock(self::TEST_CASE_CLASS);
     $test_result = m::mock('\\PHPUnit_Framework_TestResult');
     $test_result->shouldReceive('wasSuccessful')->once()->andReturn(true);
     $this->browser->setSessionStrategy(ISessionStrategyFactory::TYPE_SHARED);
     $this->assertTrue($this->browser->getTestStatus($test_case, $test_result));
 }
コード例 #2
0
 /**
  * Returns desired capabilities from browser configuration.
  *
  * @return array
  */
 public function getDesiredCapabilities()
 {
     $capabilities = parent::getDesiredCapabilities();
     if (!isset($capabilities['platform'])) {
         $capabilities['platform'] = 'Windows 7';
     }
     if (!isset($capabilities['version'])) {
         $capabilities['version'] = '';
     }
     return $capabilities;
 }
コード例 #3
0
 /**
  * Returns desired capabilities from browser configuration.
  *
  * @return array
  * @link   http://www.browserstack.com/automate/capabilities
  */
 public function getDesiredCapabilities()
 {
     $capabilities = parent::getDesiredCapabilities();
     if (!isset($capabilities['os'])) {
         $capabilities['os'] = 'Windows';
         $capabilities['os_version'] = '7';
     }
     if (!isset($capabilities['acceptSslCerts'])) {
         $capabilities['acceptSslCerts'] = 'true';
     }
     return $capabilities;
 }