'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:----O2nEW9GL3Lv3yOkkFBQTt4Os/mn37/cpCJlOsIFApE8i32LdGm1p4NIBzGYstorsIDVrI9BCM271/RhgU1EkhdfOq+Uuo9Y6GzErFaykFTbCgAklND/R1FsugGd6/+k9aNvpco16ePrH5MdB/xROv+eb9ywg36nu94YsNi2NQMwAMwbGyS/fKcEuBUdiwprC0zoFImzQo6eyTzKLTWzXgeXOlwM8uhTs86syL8E5o3+hxiJ6bM6cFj/TokT2uheRNSzNEmMkRmwY8RxTDWL1lgU68d4NeRHbT5tYenxDUaseK3BSsA0zvje/4JnuUMTl3Fm5HEHyg7xlxtnjiJFtvFO7Z77t3d7KzIMjae71GRCS/kxiZUEfnFt/Y8d6YRQpXkWVrg2oNsW/JXbdOkmm8OZgS1guuKPQie5oboBk0R1qj7iY161HcnRKVL25wTKDqY4Qz8LLevdQk6n5yl01cg2E6zgP6i/mM5gJ2DUJ/fTFpPPXFQDfjT7Up80PRmZBSlMIIqfIWqmUvmVsAorBQrE5mB89AYNT3bp8QtQbYd25vuNezxouOFb24N2mtaEdDExceAof/PORlN3vpBV21mIQ2o3GzIfEF1WJFjBL/NYm9DYxrkgOQgZBSHJV3jVkRZjtW5/RV7xE9ltmDLW9Iqig2V7HFv3AJYrlpHAyba8=----ATTACHMENT:----MzU4MjYxNDQ0MzQwODY2NSAyMjYwOTI0MjkwMTE4MDg3IDExMzU0Nzg4NjczMzUzMDY=