public function testGetWindowNames() { $this->driver->expects($this->once())->method('getWindowNames')->will($this->returnValue($names = array('window 1', 'window 2'))); $this->assertEquals($names, $this->session->getWindowNames()); }