public function testSetDriverOptionsCorrect() { $user_driver_options = array('o1' => 'v1', 'o2' => 'v2'); $expected_driver_options = array('driverParam1' => 'driverParamValue1') + $user_driver_options; $this->assertSame($this->browser, $this->browser->setDriverOptions($user_driver_options)); $this->assertSame($expected_driver_options, $this->browser->getDriverOptions()); }