Beispiel #1
0
 public function testCanPromptForConfirmation()
 {
     /**
      * Wrapping in output buffer here because of bug in the ZF2 Confirm
      * prompt where it echos directly rather than writing to the console
      * with the Adapter.
      */
     ob_start();
     $mockStdinConsole = new MockStdinConsole();
     $mockStdinConsole->setMockStdinContent('y');
     $renderer = new Markdown($mockStdinConsole);
     $this->assertTrue($renderer->confirm('Is it?', false));
     ob_get_clean();
 }