public function testBasicMethods()
 {
     $output = new ezcConsoleOutput();
     $dialog = new ezcConsoleQuestionDialog($output);
     $this->assertFalse($dialog->hasValidResult(), "Fresh dialog has valid result.");
     $exceptionCaught = false;
     try {
         $dialog->getResult();
     } catch (ezcConsoleNoValidDialogResultException $e) {
         $exceptionCaught = true;
     }
     $this->assertTrue($exceptionCaught, "Excption not thrown on getResult() without result.");
     $dialog->reset();
     $exceptionCaught = false;
     try {
         $dialog->getResult();
     } catch (ezcConsoleNoValidDialogResultException $e) {
         $exceptionCaught = true;
     }
     $this->assertTrue($exceptionCaught, "Excption not thrown on getResult() without result.");
 }