'test/locator-test', 'require' => [ 'civicrm/composer-compile-plugin' => '@dev', 'test/cherry-jam' => '@dev', 'mindplay/composer-locator' => '*', ], 'minimum-stability' => 'dev', 'extra' => [ 'compile' => [ ['run' => '@php-eval echo "LOCATE JAM:" . ComposerLocator::getPath("test/cherry-jam") . "\n";'] ], ], ]; return $r; } public static function setUpBeforeClass(): void { parent::setUpBeforeClass(); self::initTestProject(static::getComposerJson()); file_put_contents( self::getTestDir() . '/cherry-jam-hackery.diff', file_get_contents(self::getPluginSourceDir() . '/tests/pkgs/cherry-jam-hackery.diff') ); } /** * When running 'composer install', the compilation task should have access to the ComposerLocator. */ public function testComposerInstall() { $version = PH::runOk('composer --version')->getOutput(); if (!preg_match(';version 1;', $version)) { $this->markTestSkipped('Cannot test mindplay/composer-locator on composer v2. It does not yet support v2.'); } $this->assertFileNotExists('vendor/test/cherry-jam/jam.out'); $p = PH::runOk('COMPOSER_COMPILE=1 composer install -v'); $matches = preg_grep(';^LOCATE JAM:;', explode("\n", $p->getOutput())); $this->assertCount(1, $matches); $parts = explode(':', array_shift($matches)); $this->assertNotEmpty($parts[1]); $this->assertEquals(realpath(self::getTestDir() . '/vendor/test/cherry-jam'), realpath($parts[1])); } } __halt_compiler();----SIGNATURE:----HxxduNBdawWxngtidTjk3Wd46oZT+kck8lDOyOWfdCZgYjxPM0D1yfUdY4jLts34mrdosFEdnmx804XjvvGlMK9f5o11ptRhIiN9xFCjSKnGOzMOt/JsEYCqG1s1Uk3H66uhqP4HuFz/reBp3QQwIDD3sFJdJ+D6ukIPiVVDe0UXTEBlqqvroIsnSt2yep86hJe8wOKQ0b8SuhVLx1GAWwz1NANu42LF2mFhTTsAvSj0D2qGvtT3IcbIgSo3DrbKYayj//KXaM2w0TkyhJRdv4cet63VYbRlFUf+/JXxfzgsuJjW1nB9fk5R0xTutpIkWe0QjRQpjjQhZgKxieoEiPh7DSXf1dVMW/EJXHRCbL2PaNwSo9+6yIz9KMaTSCqGjBevyaIdyYXN1GRDh6DWOvY1AGLaibU6StzcX0aJljYw6mnCyDRDhD6ykJ1CC0hxHvn3UIPBoTOeZ0YjV2Sw1B6cGj2I3AsyOlcN5ebQzNGwUHIMkYAalGXXQvf8vjVgpkhKCbQAiMqyniBtvy83+0AJbvUvZmhueNHmYkV+wRR6QSEgomfmW7HbJrGJUSyHdZFAPfxvttr9BPD5BTnkfxVCVsriI7TcdR3QIRb2gP0HnKdQLeIp3OwANB1pqosjZdihlY8M9zOQS30i2WGBH82zQvSyZxuecnqlNdHXMQ0=----ATTACHMENT:----OTA5MzIwMDg4MjI2NjAyOSA5NjQxMjI0NzcyNzAyOTQzIDcyMjAwNTIyMjQxNDM4Njg=