-
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #470 from cweagans/add-composer-and-io-to-events
Add composer and io to all events + emit event before throwing exception when patch does not apply
- Loading branch information
Showing
11 changed files
with
187 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "cweagans/composer-patches-test-project", | ||
"description": "Project for use in cweagans/composer-patches acceptance tests.", | ||
"type": "project", | ||
"license": "BSD-3-Clause", | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "../../../../" | ||
} | ||
], | ||
"require": { | ||
"cweagans/composer-patches": "*@dev", | ||
"cweagans/composer-patches-testrepo": "~1.0" | ||
}, | ||
"extra": { | ||
"patches": { | ||
"cweagans/composer-patches-testrepo": { | ||
"Patch from a totally different project": "https://patch-diff.githubusercontent.com/raw/cweagans/awesome-diy-software/pull/4.patch" | ||
} | ||
} | ||
}, | ||
"config": { | ||
"preferred-install": "source", | ||
"allow-plugins": { | ||
"cweagans/composer-patches": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
/** | ||
* @var \Codeception\Scenario $scenario | ||
*/ | ||
|
||
use cweagans\Composer\Tests\AcceptanceTester; | ||
|
||
$I = new AcceptanceTester($scenario); | ||
$I->wantTo('see an error when I try to apply a patch that does not apply'); | ||
$I->amInPath(codecept_data_dir('fixtures/patch-does-not-apply')); | ||
$I->runComposerCommand('install', ['-vvv'], false); | ||
$I->seeInComposerOutput("No available patcher was able to apply patch"); | ||
$I->seeInComposerOutput("Exception trace"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters