|
@@ -33,16 +33,16 @@ |
|
|
block discarded – undo |
|
33
|
33
|
|
|
34
|
34
|
protected function setUp(): void |
|
35
|
35
|
{ |
|
36
|
|
- require_once str_replace('tests' . DIRECTORY_SEPARATOR . 'php-unit', 'source', __DIR__) |
|
37
|
|
- . DIRECTORY_SEPARATOR . 'Basics.php'; |
|
38
|
|
- require_once str_replace('tests' . DIRECTORY_SEPARATOR . 'php-unit', 'source', __DIR__) |
|
39
|
|
- . DIRECTORY_SEPARATOR . 'ComposerPackagesListing.php'; |
|
|
36
|
+ require_once str_replace('tests'.DIRECTORY_SEPARATOR.'php-unit', 'source', __DIR__) |
|
|
37
|
+ . DIRECTORY_SEPARATOR.'Basics.php'; |
|
|
38
|
+ require_once str_replace('tests'.DIRECTORY_SEPARATOR.'php-unit', 'source', __DIR__) |
|
|
39
|
+ . DIRECTORY_SEPARATOR.'ComposerPackagesListing.php'; |
|
40
|
40
|
} |
|
41
|
41
|
|
|
42
|
42
|
public function testGetPackageDetailsFromGivenComposerLockFile() |
|
43
|
43
|
{ |
|
44
|
44
|
$mock = $this->getMockForTrait(ComposerPackagesListing::class); |
|
45
|
|
- $fileToCheck = str_replace('tests' . DIRECTORY_SEPARATOR . 'php-unit', '', realpath(__DIR__)) . 'composer.lock'; |
|
|
45
|
+ $fileToCheck = str_replace('tests'.DIRECTORY_SEPARATOR.'php-unit', '', realpath(__DIR__)).'composer.lock'; |
|
46
|
46
|
$actual = $mock->getPackageDetailsFromGivenComposerLockFile($fileToCheck, true); |
|
47
|
47
|
$this->assertArrayHasKey('Aging', $actual['phpunit/phpunit']); |
|
48
|
48
|
} |
Please login to merge, or discard this patch.