Skip to content

Commit

Permalink
don't fuss with storing test resources
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Dec 22, 2024
1 parent f0b2b0d commit c445a97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions files/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
define('PHPFHIR_ROOT_DIR', realpath(dirname(__DIR__)));
define('PHPFHIR_BIN_DIR', realpath(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'bin'));
define('PHPFHIR_DEFAULT_OUTPUT_DIR', realpath(PHPFHIR_ROOT_DIR . DIRECTORY_SEPARATOR . 'output'));
const PHPFHIR_OUTPUT_TMP_DIR = PHPFHIR_DEFAULT_OUTPUT_DIR . DIRECTORY_SEPARATOR . 'tmp';
const PHPFHIR_FHIR_VALIDATION_JAR = PHPFHIR_BIN_DIR . DIRECTORY_SEPARATOR . 'validator_cli.jar';

// type suffixes
const PHPFHIR_PRIMITIVE_SUFFIX = '-primitive';
Expand Down
4 changes: 2 additions & 2 deletions template/versions/types/tests/integration/class.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ protected function fetchResourceBundle(string $format): string
}
$this->assertIsString($rc->resp);
$this->_fetchedResources[$format] = $rc->resp;
$fname = sprintf('%s%s<?php echo $type->getFHIRName(); ?>-<?php echo $version->getSourceMetadata()->getFHIRVersion(false); ?>-source.%s', PHPFHIR_OUTPUT_TMP_DIR, DIRECTORY_SEPARATOR, $format);
file_put_contents($fname, $rc->resp);
// $fname = sprintf('%s%s<?php echo $type->getFHIRName(); ?>-<?php echo $version->getSourceMetadata()->getFHIRVersion(false); ?>-source.%s', PHPFHIR_OUTPUT_TMP_DIR, DIRECTORY_SEPARATOR, $format);
// file_put_contents($fname, $rc->resp);
return $rc->resp;
}

Expand Down
4 changes: 2 additions & 2 deletions template/versions/types/tests/validation/class.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ protected function fetchResourceBundle(string $format): string
}
$this->assertIsString($rc->resp);
$this->_fetchedResources[$format] = $rc->resp;
$fname = sprintf('%s%s<?php echo $type->getFHIRName(); ?>-<?php echo $version->getSourceMetadata()->getFHIRVersion(false); ?>-source.%s', PHPFHIR_OUTPUT_TMP_DIR, DIRECTORY_SEPARATOR, $format);
file_put_contents($fname, $rc->resp);
// $fname = sprintf('%s%s<?php echo $type->getFHIRName(); ?>-<?php echo $version->getSourceMetadata()->getFHIRVersion(false); ?>-source.%s', PHPFHIR_OUTPUT_TMP_DIR, DIRECTORY_SEPARATOR, $format);
// file_put_contents($fname, $rc->resp);
return $rc->resp;
}

Expand Down

0 comments on commit c445a97

Please sign in to comment.