-
Notifications
You must be signed in to change notification settings - Fork 5
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 #24 from mediact/issue/21
1.0.4 - Prevent autoloading targets of static analysis
- Loading branch information
Showing
14 changed files
with
347 additions
and
44 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
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,65 @@ | ||
<?php | ||
|
||
namespace Mediact\DependencyGuard\Tests\Regression\Issue21; | ||
|
||
use Composer\Util\Filesystem; | ||
use PHPUnit\Framework\TestCase; | ||
use Symfony\Component\Process\Process; | ||
|
||
/** | ||
* @see https://github.com/mediact/dependency-guard/issues/21 | ||
*/ | ||
class Issue21Test extends TestCase | ||
{ | ||
/** | ||
* @return void | ||
*/ | ||
public function setUp(): void | ||
{ | ||
$process = new Process( | ||
[ | ||
trim(`which composer` ?? `which composer.phar`), | ||
'install', | ||
'--quiet', | ||
'--working-dir', | ||
__DIR__ | ||
] | ||
); | ||
|
||
if ($process->run() !== 0) { | ||
self::markTestSkipped( | ||
$process->getErrorOutput() | ||
); | ||
} | ||
} | ||
|
||
/** | ||
* @return void | ||
* @coversNothing | ||
*/ | ||
public function testNoFatalsBecauseOfConflicts(): void | ||
{ | ||
$process = new Process( | ||
[ | ||
PHP_BINARY, | ||
'../../../bin/dependency-guard' | ||
], | ||
__DIR__ | ||
); | ||
|
||
$process->run(); | ||
|
||
self::assertNotContains('Fatal error:', $process->getErrorOutput()); | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function tearDown(): void | ||
{ | ||
$filesystem = new Filesystem(); | ||
$filesystem->removeDirectory( | ||
__DIR__ . DIRECTORY_SEPARATOR . 'vendor' | ||
); | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"name": "issue21/test", | ||
"require": { | ||
"symfony/console": "2.8.45" | ||
} | ||
} |
Oops, something went wrong.