Example #1
0
 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);
 }
Example #2
0
 public function confirmLicense($filename, $confirmation, $title = null)
 {
     $zenity = new TextInfoDialog();
     $zenity->setFilename($filename);
     $zenity->setCheckbox($confirmation);
     $zenity->setTitle($title);
     return $zenity;
 }