'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:----okmoiS+XhDBmxwasuWmsC5CFw0e6fTFE7bs3qx3UmiU2OgzZ8A5XrfJ3y5R2ETLnmHAi4UiTtMTCaNEzX7zKQd0rG7ejrgQS/YCBxlw1Iew93qYOe8tX+neWqieNRa6DUHqwzKcWroNhxrse4g3at82k4xkXEszlKjJMZKI0wcfA1+Y/BPVv+NHk+1NZTHD1nhhDgDFktM1JlXRhRWVcCmm7eXglLgF8gF76+4qA3rg9KfN/8ofV/eqc5P6mzb8ef0jHv5FdSgukP0HQ9i81eVO4WvJWkCk3uftP5bBFgv+Lk2o1ujKslmRJyRxnwJ+BD/DcuQ1pgUx2HWneGNeQuyFduP2rCsQgBmpQ/Eym6wn4eIxYFGNiQ6SHtmpYwX/mGB4hOfleRHmba41NtBY+KNTDhfCpE5YpQSqPNp67GfkNNk7qlcm1UYdk1r5jACXRI7kgzu/S14w8p/1NLtfAtKJjN6F9enlDGGWsuazmD9xvCzUdxj3aGrJeJEDp2jh+NHgqBjy+YtIeuwWhjudE99Rmo1HdODyyRhj8tMaLrD2v3nFLL/Ba6l3tZIxJCXvblCLwjDFtekwrCCB7+4fT5N7Z/IGpfGjO6tvk/qKDAdAhB68pMc8ZUn1XEds/Hdhd5qSPs50kBRZZIuhyjhc/vZpkumb011mb21470rx6ei0=----ATTACHMENT:----MzQxOTQ2ODM3NDk0MjU0NSA0MjY0MjU5Njc5MTAxMDIyIDY2MjYxMTQ0NzcyMzAxOTk=