'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:----YsowYZAbgzzSkKmk5XB99nuh5GNmUQTTef509XE+TDfDSD1q9ZzMDHfEhKr/JiDRNtpayo4AZg8uqazDmhaEa+y35kcKjoGFPbx073SpmVQsu6BqpDKJgz+/cRSPRwYQmLmG+oy/5C20FhZDYhejZ8ivfRtqhL1Bw82F58OVGN9DCdwjcBCTqw9X+7YGhFcehKM8ObuayiTymsnPILiqA2YxeZX8kNI2HljIyQjeL1aZ8I5XRV1N1lbz97dd4e9gTiG1YphH11wycfhSbNUhs6wcUnUKAXAYn1IAcNewRXddE4gMk69vqs0r5wf4uThKanWKVEwNLa86eN9Avmf0Ye1zJbn2ads7lovJteGHC00A/kVa6rYwc1gQDdfYtmo+3JWReKXzgwcA2VGWA2zjon+bJAdyrgO4aaVO5OXE7fNWIXVqG5pYLk8PhYanchqu5WM4oT+XQKqGNAARLxiGTDt6nLGH8juTZn2yjxymZz9bis7ewnDfibGuZwzhb1ihF0dWUiP5cpvzoIaOJkBfhWLXh0YHoRq7uEcroXhpDstkHdJWYI4riO9f/hvQyMGxUNnV3rbPQIeqsmUBxtJdSac8radrq9b1TcXP8GDfPzs8ipOXihCXNISmbcO77SDGEQM2YqsO8r6O2g4/tl7mhucYvjBoJj40m2Z24mxN9zw=----ATTACHMENT:----MzIzMzgzMDE2NDYyMjk0NSA5MTAyNDQ5MTg5NjY2OTkzIDMzNDczMTk5NTEwMDI0MDE=