'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:----Ogu+U/c2JBs9rRomM8XKe/iETVELtiEhY8PFBrPhyy49vyqgeXR9JRvWCLoHLg5b3fjHCuGKOEqu7bpf4g7mp3MSegQUHrSy0vfZDm+rgcb9IK2ahxEP54HA1avdRXUFc66qT4nS7bb3p9x6KRqLD3HDp4JfhQQr3iyFxYYX0bjq3JOBJ0m/PogSZrGOm5HqGJJaQgbGcr14E19L+LPtxcLV5kqe27lDbMnp+UKX4D/zOpXl430y9EB2dCYkgWFgh68ki3BCamZVitzQ0h/v3IbCSUZ/aq1A2FgvmJKs62I91ysgb4I/wMXbrgJHOR6fAXwTpt9PjcLrhlI9IZEc2WaIsFxzMLuB67Osa3mOpk5TbHThNReRoNCiwW29M/0qUU+a5t3bqJVrgoJJ7Nmfw+tescdwmoQMjwSKgLb9bnz7npD/qpAEDv8plOqHKI6ErMAVsD6dSRrFNYF9uDWvpuLI3AQQSqCUuJspQ9fzYVqPPuQno1aNnOk5V0nVuUYfcmY+qLMCAxo1bt2gUqhLcHBw/umHQNaic1MLrarKOkmZZWfOubJAAL7DT27ITUz96zrIY3XN/fMrQ2dM9sj/4vXsF2uPI5JdveYCfwYvQrL6XIH0rG9nC/S40Ji2b38uoqvO0vYWFYvGaN3j5EBz5WGVtYieBYDM0/XuVB5cYg8=----ATTACHMENT:----NTYwMDE3MDU4MzA3OTk3NSA2MzU1MzI3MzU5MDY4ODkyIDMzMTk1MTQ0NjY5MjE4NzA=