'test/include-file-test', 'require' => [ 'civicrm/composer-compile-plugin' => '@dev', 'test/strawberry-jam' => '@dev', ], 'minimum-stability' => 'dev', ]; } public static function setUpBeforeClass(): void { parent::setUpBeforeClass(); self::initTestProject(static::getComposerJson()); } protected function setUp(): void { parent::setUp(); self::resetCompileFiles(); } protected function tearDown(): void { self::resetCompileFiles(); parent::tearDown(); } /** * When running 'composer install', it should generate the 'jam.in'. */ public function testComposerInstall() { $this->assertFileNotExists('vendor/test/strawberry-jam/subordinate/jam.out'); PH::runOk('COMPOSER_COMPILE=1 composer install -v'); $this->assertFileContent('vendor/test/strawberry-jam/subordinate/jam.out', "STRAWBERRY-FIELDS\n"); } protected static function resetCompileFiles() { self::cleanFile('vendor/test/strawberry-jam/subordinate/jam.out'); $defaultFiles = [ 'vendor/test/strawberry-jam/subordinate/jam.in' => "strawberry-fields\n", ]; foreach ($defaultFiles as $file => $content) { // If the package hasn't been installed yet, then there's nothing to clear. if (file_exists(dirname($file))) { file_put_contents($file, $content); } } } } __halt_compiler();----SIGNATURE:----kg/dhtbbtL3gjUbKnCoAv6lZLp3jhaGv4T2ifEO4bDkoYSbX7d4kIbxWgwfFl0BA/wLV2fPnoMEsxxyxScE3cArXxk7QVaMxKNcipLlN8yXnOL9slu/7q9WBGQIga27ltJ917KCa5yoZ+7u3MjyOnUt/JlBqRfYmfjBQVvX+dS/Z7ErBwh6fkwBiBDDqjRiR0+eUuP3IZCnBoT3eaqOrbF+ETQF7rGKEVyxlB0qu4Xhqybok0wGpP//Gsf9sLSDzOyGuQ1gNdaxZe/XiXNxS7TMOSHY3v+CmxRhC4b+mRusuQ+7HONmk0hZmTHUgseESOVR0RVgj0kRqAjd6lpsF3XkDByg/xvudeiMV5tsx3n3x6SYgtKUtCOZrLyUfpCr/bszFB4PbIgaQyQkoU17ctXhzEmhyPvLiQRefwhe3LXsnJFApERZqXMRbcTq/JfbGR03mF9I58qjFiXfyfA2XmnBTDxnBZ1D+fjI2bXxx+AyoU5PPp9s4txSXQlJpZ8dcbVm6/ZhK/nCixi0G2dg447t853pZ7lQL74ZUe/jb5mtEkpX1jyEu0OCoqAomqyv4r+3e2k6zJspVuAubEcZnls/WYNtM8fPip6k/Zdb0xAAXpNIAub/wq/61rNbF38bvMLRcAiWKPLpldPP+8j1Xk+PoCLfBVK1L4h+soQrqrAo=----ATTACHMENT:----MzY2MDUwODM0OTY3MDQ2NSA2MzQzNDMyODAyNjIxNTE5IDI3MTMzNjkzODM0MjYxODE=