ExpressiveInstallerTest\ProcessAnswersTest::testInvalidAnswer PHP Method

testInvalidAnswer() public method

public testInvalidAnswer ( )
    public function testInvalidAnswer()
    {
        $io = $this->prophesize('Composer\\IO\\IOInterface');
        $io->write()->shouldNotBeCalled();
        $config = $this->getConfig();
        $question = $config['questions']['container'];
        $answer = 'foobar';
        $copyFilesKey = 'minimal-files';
        $result = OptionalPackages::processAnswer($io->reveal(), $question, $answer, $copyFilesKey);
        $this->assertFalse($result);
        $this->assertFileNotExists($this->getProjectRoot() . '/config/container.php');
    }