getSession(); $windowNames = $session->getWindowNames(); $this->assertArrayHasKey(0, $windowNames); foreach ($windowNames as $name) { $this->assertRegExp(self::WINDOW_NAME_REGEXP, $name); } } public function testGetWindowName() { $session = $this->getSession(); $this->assertRegExp(self::WINDOW_NAME_REGEXP, $session->getWindowName()); } }