public function testAttachFile() { $node = new NodeElement('elem', $this->session); $this->driver->expects($this->once())->method('attachFile')->with('elem', 'path'); $node->attachFile('path'); }