'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:----oYRsmrx42FosMRd2g/xcALo37NrPkBgZn8ApuEhTN1NFSoX8OL0wBILpgGUtdXKV97qAk4u/k5OCESHOSf2ZjwNh+PcT6Bnm/KvlX9lRWfHzy8/RvFywkFoAsQkGADDF/1VNm8CjKKh2uW7hnRYTmL2n3fPbW0TRqT1sVPp5Ww+oawxd+gAHKvwPjJus9PtRMIGdo2iIlYeLE8utq/9zsuiXIkw7+Ogf1cNyMyBZ3KNgRMFqiTwUmYml9sqwew2JcHYuKmdMzbgshpHLXBBh7iZ0DzH8b3wrJiHcHY9VtiBKCC/oNsd+GiSxn2/vFsIr+xuQzpf0Yixgp5f5djYYh0d94BRwXBwpI+tqP31VgatOnS3WB8sVcyoGkw9KlybPRT1Rj45XpTRzs171OXflXxNhJFupDQ6iVu98zdj7f2bQPt0ZyGkVphC6H9xukavR4x12nZxAIWQjFSwi+m66rZQx0+OZKfocUFXs2i7bNI9gccS21PCrpfDMiv/heK5B3vrJd9m/ZQI/dmcGTiJ7vbRfproBEvLqCw9Oug2fMVoZcdR7Pz7XqRhkOMQDNn7aiGXLc2J7YcXej4C/8XUDVlOkbPPZA/h1s2X08/38OS2nne4FeVXbqgkhUaC4xQ0UpogLaP1BpPWnU8KuMcVAka4upqsfEJ0tAq5AHamJ+ps=----ATTACHMENT:----MzEwMjAxOTI3OTg1NTQ2NiAxOTUyODk5MzA4MjcxNzEzIDQ3NDM1NDkwNDgwNDU5NjM=