public function testCheck() { $node = new NodeElement('checkbox_or_radio', $this->session); $this->driver->expects($this->once())->method('check')->with('checkbox_or_radio'); $node->check(); }