Symfony\Installer\Tests\IntegrationTest::testSymfonyInstallationInCurrentDirectory PHP Method

testSymfonyInstallationInCurrentDirectory() public method

    public function testSymfonyInstallationInCurrentDirectory()
    {
        $projectDir = sprintf('%s/my_test_project', sys_get_temp_dir());
        $this->fs->remove($projectDir);
        $this->fs->mkdir($projectDir);
        $output = $this->runCommand(sprintf('php %s/symfony.phar new . 2.7.5', $this->rootDir), $projectDir);
        $this->assertContains('Downloading Symfony...', $output);
        $output = $this->runCommand('php app/console --version', $projectDir);
        $this->assertContains('Symfony version 2.7.5 - app/dev/debug', $output);
    }