public function testCreateProject() { $tempDir = $this->createTempDir(); $app = new ComposerUI($tempDir); $this->assertTrue($app->createProject('seld/jsonlint', '1.0')); $this->assertFileExists($tempDir . DIRECTORY_SEPARATOR . 'jsonlint'); $this->assertTrue($app->createProject('seld/jsonlint', '1.0', 'testing')); $this->assertFileExists($tempDir . DIRECTORY_SEPARATOR . 'testing'); }