public function testShouldProvideAccessToCapabilitiesUsingSettersAndGetters()
 {
     $capabilities = new DesiredCapabilities();
     // generic capability setter
     $capabilities->setCapability('custom', 1337);
     // specific setters
     $capabilities->setBrowserName(WebDriverBrowserType::CHROME);
     $capabilities->setPlatform(WebDriverPlatform::LINUX);
     $capabilities->setVersion(333);
     $this->assertSame(1337, $capabilities->getCapability('custom'));
     $this->assertSame(WebDriverBrowserType::CHROME, $capabilities->getBrowserName());
     $this->assertSame(WebDriverPlatform::LINUX, $capabilities->getPlatform());
     $this->assertSame(333, $capabilities->getVersion());
 }
 /**
  * @return DesiredCapabilities
  */
 public static function firefox()
 {
     $caps = new DesiredCapabilities(array(WebDriverCapabilityType::BROWSER_NAME => WebDriverBrowserType::FIREFOX, WebDriverCapabilityType::PLATFORM => WebDriverPlatform::ANY));
     // disable the "Reader View" help tooltip, which can hide elements in the window.document
     $profile = new FirefoxProfile();
     $profile->setPreference('reader.parse-on-load.enabled', false);
     $caps->setCapability(FirefoxDriver::PROFILE, $profile);
     return $caps;
 }