Skip to content

Commit ed2aa2b

Browse files
committed
587: Windows use .dll
1 parent 45177b8 commit ed2aa2b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/integration/ComposerIntegration/ComposerIntegrationHandlerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Php\Pie\DependencyResolver\RequestedPackageAndVersion;
2121
use Php\Pie\DependencyResolver\ResolvedPackageRequest;
2222
use Php\Pie\Platform;
23+
use Php\Pie\Platform\OperatingSystem;
2324
use Php\Pie\Platform\TargetPhp\PhpBinaryPath;
2425
use Php\Pie\Platform\TargetPlatform;
2526
use Php\PieIntegrationTest\Command\IsolatedWorkingDirectoryTestCase;
@@ -169,7 +170,7 @@ public function testRunUninstallRemovesPackageFromPieJson(): void
169170

170171
private function extensionBinaryPath(): string
171172
{
172-
return $this->targetPlatform->phpBinaryPath->extensionPath() . DIRECTORY_SEPARATOR . self::EXTENSION_NAME . '.so';
173+
return $this->targetPlatform->phpBinaryPath->extensionPath() . DIRECTORY_SEPARATOR . self::EXTENSION_NAME . ($this->targetPlatform->operatingSystem === OperatingSystem::Windows ? '.dll' : '.so');
173174
}
174175

175176
/** @param non-empty-string $version */

0 commit comments

Comments
 (0)