'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:----Ze+8TjLZoOToU5aIdP4o/Eui+WCd9+pACmMLoToJqAfbp12jT6mAJKWH8ypi6oTOJ55KE3VagqfT/b5ddnhPlpXTgpX4BGBypz1qD+jZbdqUbHGgs6/B6NamNM1AsFIdR/svqRZIjR9fhcS0t23D4XBRVUWfK9LXj1S9+bQWaVIhbSn13z/xN/r9nxXtVW88Y9HGnl8Byape2yZaOTpl600VoSRbP7mR7k5LWx9/HXdsTN3cAYsWfDRPekrWf3vOpeZl8n6HS/n4SMJtOYpOY0WYEpg08jgMGysnsMyEMZTeGGiifJWOQcGqJOKOTGHn2+kEyQq8dRXKPKOoNwWZTBO/s2TWsenbUP/vGkMcnw2eNAM2aDCw3E8LxgGrGyLxMdRGD299E9ZDbksNxqAM7iwxYUVZAz5ieKHiqUZGPbfw4CLpmJs3m8AF6xpcP0gn+gZSfQU0fuVdCGErPw+zctYer2ps4jMf798orbrOUixK6a0vw5CI41ioe1y1D7P7sVCcgRYy9juv88iIhzhky+i26G1BkUXBULsr5EwqTHB42d8g1cj7+DXeB3JWJgeDTsTrL9gnNuxSHGRJUblrHYdqeoRZxyBPVaBHOBvtj6w8rRcWO7wmQki+avnCNBdmxlaC9Pf4PF6kz8ciTJ6X7DzOZZ0ITjhiNalz2NIq3rQ=----ATTACHMENT:----MTczODY2MTg2MzgzMTcwNCA1NzQ1MTE4OTc4MzQ1NzI0IDU5ODY5ODQ2MjQzODE2NDU=