public function testZen() { $dialog = new TextInfoDialog(); $dialog->addLine('hello'); $dialog->addLine('world'); $process = $this->getMockBuilder('React\\ChildProcess\\Process')->disableOriginalConstructor()->getMock(); // TODO: assert writeline hello, world $zen = $dialog->createZen(); $this->assertInstanceOf('Clue\\React\\Zenity\\Zen\\TextInfoZen', $zen); }
public function confirmLicense($filename, $confirmation, $title = null) { $zenity = new TextInfoDialog(); $zenity->setFilename($filename); $zenity->setCheckbox($confirmation); $zenity->setTitle($title); return $zenity; }