コード例 #1
0
 /**
  * Configures all tests.
  *
  * @return void
  */
 protected function setUp()
 {
     $this->testsRequireSubscriber[] = 'testTestSetupEvent';
     $this->testsRequireSubscriber[] = 'testTestEndedEvent';
     $this->testsRequireSubscriber[] = 'testTestEndedWithoutSession';
     $this->browserConfigurationFactory = m::mock('aik099\\PHPUnit\\BrowserConfiguration\\IBrowserConfigurationFactory');
     parent::setUp();
     $this->setup['port'] = 80;
     $this->setup['api_username'] = '******';
     $this->setup['api_key'] = 'AK';
 }
コード例 #2
0
 /**
  * Configures all tests.
  *
  * @return void
  */
 protected function setUp()
 {
     $this->testsRequireSubscriber[] = 'testTestSetupEvent';
     $this->testsRequireSubscriber[] = 'testTestEndedEvent';
     $this->testsRequireSubscriber[] = 'testTestEndedWithoutSession';
     $this->testsRequireSubscriber[] = 'testTunnelIdentifier';
     if ($this->getName(false) === 'testTestEndedEvent') {
         $this->mockBrowserMethods[] = 'getAPIClient';
     }
     parent::setUp();
     $this->setup['port'] = 80;
     $this->setup['apiUsername'] = '******';
     $this->setup['apiKey'] = 'AK';
 }