ExpressiveInstallerTest\ProcessAnswersTest::testAnsweredWithInvalidOption PHP Метод

testAnsweredWithInvalidOption() публичный Метод

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