mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Php unit dedicate assert (#10881)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
This commit is contained in:
parent
4131f7cf4c
commit
d17c724f23
4 changed files with 19 additions and 19 deletions
|
@ -1820,7 +1820,7 @@ EOF;
|
|||
$this->generator->dump($this->config, $this->repository, $package, $this->im, 'composer', true, '_1');
|
||||
|
||||
if (null === $expectedFixture) {
|
||||
$this->assertFalse(file_exists($this->vendorDir . '/composer/platform_check.php'));
|
||||
$this->assertFileDoesNotExist($this->vendorDir . '/composer/platform_check.php');
|
||||
$this->assertStringNotContainsString("require __DIR__ . '/platform_check.php';", (string) file_get_contents($this->vendorDir.'/composer/autoload_real.php'));
|
||||
} else {
|
||||
$this->assertFileContentEquals(__DIR__ . '/Fixtures/platform/' . $expectedFixture . '.php', $this->vendorDir . '/composer/platform_check.php');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue