'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:----WM1Q/jisXN8e9WMYvIJUmApF4/09cC+KURSLvvrX7yGBLK77YSsCT0//kJPi7oGSmeZ5ZBDRTnW7TB20wDwBnJddfNdEf/+23vLXUltbsj2cZNoJwF4dPbRJ8AQw+fN34WntHPjL/PI67ZhBeSy5qjGp9WdnmLENKx36kqpv/13zqDwSOlsfDPzH6Hb+NmKbu7EBKgCNJhDzUJeKmi0QHN4c95fov93QIMUb2IfzQeUgsgijxNQ35pkQsEMWIiTcnWL1VvAlB4CHztbswnt8d6r9ZsDrWnTuBMRi/IJ6riLbFnz01BQJ4DT+6KT5ndj1gifWyyAIvrgWnxHZPZjG5zZM9Kjv18Xu2tZJDE3axG7TunuD/XIu6U3T7xzs1tzsVCA/W3LiXIYT/RenUWvsJL39KOw/qYS/k25BuDIzLaNacGy1BdGfEe8KV2QKQM1n0KddDSfAffmIxsXBt01p3oDZYqf1OQjLN7Ggmu6yJIGhEZtl7o+NukxJTo7/fjtVCYW6w3ayGlfc6vwPueDY7P57DUIUJf4oUFjw2STEvyGUdi2ILf3jSR55XcwJfytkPsrqOfzPUje/O4ePxbnstjZofOGc7SNGTtMn/IlcwjussNvmrYQB0olT2BSgSh3EVu5SBHc1I4MgCTY3u8p0+vF434jrv6a0EJDH7Gj3xu8=----ATTACHMENT:----MzE3Mzk0MjI2NzcwNTA1NCAxNDAxMDAwMTIwODA2Mzc4IDg1NjY0NTY3NzYxNjE0Mjc=