Skip to content

Commit 902a0ce

Browse files
committed
532: fixing up tests
1 parent 0852f39 commit 902a0ce

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

test/integration/Installing/UnixInstallTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,14 @@ public function testUnixInstallCanInstallPrePackagedBinary(string $phpConfig): v
186186
$output,
187187
);
188188

189+
if (! file_exists(self::TEST_PREBUILT_PATH)) {
190+
mkdir(self::TEST_PREBUILT_PATH, 0777, true);
191+
}
192+
189193
/**
190194
* Move the built .so into a new path; this simulates a pre-packaged binary, which would not have Makefile etc
191195
* so this ensures we're not accidentally relying on any build mechanism (`make install` or otherwise)
192196
*/
193-
mkdir(self::TEST_PREBUILT_PATH, 0777, true);
194197
$prebuiltBinaryFilePath = self::TEST_PREBUILT_PATH . DIRECTORY_SEPARATOR . 'pie_test_ext.so';
195198
rename($built->filePath, $prebuiltBinaryFilePath);
196199

test/unit/ComposerIntegration/VendorCleanupTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testInvalidVendorDirectory(): void
5858
->expects(self::once())
5959
->method('write')
6060
->with(
61-
'<comment>Vendor directory (vendor-dir config) /path/that/does/not/exist seemed invalid?</comment>',
61+
'<comment>Vendor directory (vendor-dir config) /path/that/does/not/exist seemed invalid? An error occurred</comment>',
6262
true,
6363
IOInterface::VERY_VERBOSE,
6464
);

0 commit comments

Comments
 (0)