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()); }