Skip to content

Commit

Permalink
fixing core factory test
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Dec 30, 2024
1 parent c325810 commit 7fa882e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions template/core/tests/test_class_factory_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public function testFactoryConfigVersionArrayMissingName(): void
$this->expectException(\InvalidArgumentException::class);
$config = new <?php echo PHPFHIR_CLASSNAME_FACTORY_CONFIG; ?>([
'versions' => [
'class' => 'some class',
[
'class' => 'some class',
],
]
]);
}
Expand All @@ -57,7 +59,9 @@ public function testFactoryConfigVersionArrayMissingClass(): void
$this->expectException(\InvalidArgumentException::class);
$config = new <?php echo PHPFHIR_CLASSNAME_FACTORY_CONFIG; ?>([
'versions' => [
'name' => 'FHIRTEST',
[
'name' => 'FHIRTEST',
],
]
]);
}
Expand All @@ -67,8 +71,10 @@ public function testFactoryConfigVersionArrayInvalidClass(): void
$this->expectException(\InvalidArgumentException::class);
$config = new <?php echo PHPFHIR_CLASSNAME_FACTORY_CONFIG; ?>([
'versions' => [
'name' => 'FHIRTEST',
'class' => \stdClass::class,
[
'name' => 'FHIRTEST',
'class' => '\\mygreatclass',
],
]
]);
}
Expand Down

0 comments on commit 7fa882e

Please sign in to comment.