Skip to content

Commit

Permalink
no fixes, thinking through stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Dec 22, 2024
1 parent 8071945 commit 6b9fa90
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions template/versions/types/tests/integration/class.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,16 @@ protected function fetchResourceBundle(string $format): string
if (isset($this->_fetchedResources[$format])) {
return $this->_fetchedResources[$format];
}
$rc = $this->_client->readRaw(resourceType: <?php echo PHPFHIR_ENUM_VERSION_TYPE; ?>::<?php echo $type->getConstName(false); ?>, count: 5, format: <?php echo PHPFHIR_ENUM_API_FORMAT; ?>::from($format));
$rc = $this->_client->readRaw(
resourceType: <?php echo PHPFHIR_ENUM_VERSION_TYPE; ?>::<?php echo $type->getConstName(false); ?>,
count: 5,
format: <?php echo PHPFHIR_ENUM_API_FORMAT; ?>::from($format),
);
$this->assertEmpty($rc->err, sprintf('curl error seen: %s', $rc->err));
if (404 === $rc->code) {
$this->markTestSkipped(sprintf('Endpoint "%s" has no resources of type "%s"', $this->_testEndpoint, <?php echo PHPFHIR_ENUM_VERSION_TYPE; ?>::<?php echo $type->getConstName(false); ?>->value));
$this->markTestSkipped(sprintf('Query "%s" returned no resources of type "%s"', $rc->url, <?php echo PHPFHIR_ENUM_VERSION_TYPE; ?>::<?php echo $type->getConstName(false); ?>->value));
} else if (500 === $rc->code) {
$this->markTestSkipped(sprintf('Endpoint "%s" is experiencing issues', $this->_testEndpoint));
$this->markTestSkipped(sprintf('Query "%s" returned 500', $rc->url));
} else {
$this->assertEquals(200, $rc->code, 'Expected 200 OK');
}
Expand Down

0 comments on commit 6b9fa90

Please sign in to comment.