aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/question/strict_confirmation_question_test.rs
blob: 44442890650c9ff0f82e6ae0777c8725e1489739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! ref: composer/tests/Composer/Test/Question/StrictConfirmationQuestionTest.php

// These drive StrictConfirmationQuestion through Symfony's QuestionHelper::ask using
// ArrayInput/StreamOutput, none of which are ported. The question's normalizer and
// validator are private, so they cannot be exercised directly either.

#[test]
#[ignore = "ArrayInput exposes no public set_stream (its inner Input is pub(crate)), and fopen returns PhpMixed which cannot be bridged to StreamOutput::new's PhpResource"]
fn test_ask_confirmation_bad_answer() {
    todo!()
}

#[test]
#[ignore = "ArrayInput exposes no public set_stream (its inner Input is pub(crate)), and fopen returns PhpMixed which cannot be bridged to StreamOutput::new's PhpResource"]
fn test_ask_confirmation() {
    todo!()
}

#[test]
#[ignore = "ArrayInput exposes no public set_stream (its inner Input is pub(crate)), and fopen returns PhpMixed which cannot be bridged to StreamOutput::new's PhpResource"]
fn test_ask_confirmation_with_custom_true_and_false_answer() {
    todo!()
}