public function testPress() { $node = new NodeElement('link_or_button', $this->session); $this->driver->expects($this->once())->method('click')->with('link_or_button'); $node->press(); }