Exemple #1
0
 public function testCanPromptConfirmWithoutIgnoreCase()
 {
     fwrite($this->adapter->stream, 'Yn');
     $confirm = new Confirm("Is ZF2 the best framework ?");
     $confirm->setEcho(false);
     $confirm->setConsole($this->adapter);
     $confirm->setIgnoreCase(false);
     ob_start();
     $response = $confirm->show();
     $text = ob_get_clean();
     $this->assertEquals($text, "Is ZF2 the best framework ?\n");
     $this->assertFalse($response);
 }