-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autoloader improvements, small testing improvements
- Loading branch information
Showing
17 changed files
with
156 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="../vendor/autoload.php" colors="true" stopOnFailure="false"> | ||
<php> | ||
<ini name="memory_limit" value="2048M"/> | ||
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://hapi.fhir.org/baseDstu2" force="true" /> | ||
</php> | ||
<testsuites> | ||
<testsuite name="DSTU2"> | ||
<directory>../output/DCarbone/PHPFHIRGenerated/Versions/DSTU2/Tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
</source> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" | ||
bootstrap="bootstrap.php" | ||
colors="true" | ||
stopOnFailure="false"> | ||
<php> | ||
<ini name="memory_limit" value="2048M"/> | ||
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://hapi.fhir.org/baseDstu2" force="true"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="DSTU2"> | ||
<directory>../output/DCarbone/PHPFHIRGenerated/Versions/DSTU2/Tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="../vendor/autoload.php" colors="true" stopOnFailure="false"> | ||
<php> | ||
<ini name="memory_limit" value="2048M"/> | ||
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://server.fire.ly/r4" force="true" /> | ||
</php> | ||
<testsuites> | ||
<testsuite name="R4"> | ||
<directory>../output/DCarbone/PHPFHIRGenerated/Versions/R4/Tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
</source> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" | ||
bootstrap="bootstrap.php" | ||
colors="true" | ||
stopOnFailure="false"> | ||
<php> | ||
<ini name="memory_limit" value="2048M"/> | ||
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://server.fire.ly/r4" force="true"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="R4"> | ||
<directory>../output/DCarbone/PHPFHIRGenerated/Versions/R4/Tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="../vendor/autoload.php" colors="true" stopOnFailure="false"> | ||
<php> | ||
<ini name="memory_limit" value="2048M"/> | ||
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://server.fire.ly/r5" force="true" /> | ||
</php> | ||
<testsuites> | ||
<testsuite name="R5"> | ||
<directory>../output/DCarbone/PHPFHIRGenerated/Versions/R5/Tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
</source> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" | ||
bootstrap="bootstrap.php" | ||
colors="true" | ||
stopOnFailure="false"> | ||
<php> | ||
<ini name="memory_limit" value="2048M"/> | ||
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://server.fire.ly/r5" force="true"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="R5"> | ||
<directory>../output/DCarbone/PHPFHIRGenerated/Versions/R5/Tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="../vendor/autoload.php" colors="true" stopOnFailure="false"> | ||
<php> | ||
<ini name="memory_limit" value="2048M"/> | ||
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://server.fire.ly/r3" force="true" /> | ||
</php> | ||
<testsuites> | ||
<testsuite name="STU3"> | ||
<directory>../output/DCarbone/PHPFHIRGenerated/Versions/STU3/Tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
</source> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" | ||
bootstrap="bootstrap.php" | ||
colors="true" | ||
stopOnFailure="false"> | ||
<php> | ||
<ini name="memory_limit" value="2048M"/> | ||
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://server.fire.ly/r3" force="true"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="STU3"> | ||
<directory>../output/DCarbone/PHPFHIRGenerated/Versions/STU3/Tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php declare(strict_types=1); | ||
|
||
/** | ||
* PHPUnit bootstrap script | ||
* | ||
* Copyright 2024 Daniel Carbone ([email protected]) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
const COMPOSER_AUTOLOADER_PATH = __DIR__ . '/../vendor/autoload.php'; | ||
const GENERATED_AUTOLOADER_PATH = __DIR__ . '/../output/DCarbone/PHPFHIRGenerated/Autoloader.php'; | ||
|
||
$composerAutoloader = realpath(COMPOSER_AUTOLOADER_PATH); | ||
$generatedAutoloader = realpath(GENERATED_AUTOLOADER_PATH); | ||
|
||
if (!$composerAutoloader) { | ||
throw new \RuntimeException(sprintf('Copmoser autoloader class file not found at expected path: %s', COMPOSER_AUTOLOADER_PATH)); | ||
} | ||
if (!$generatedAutoloader) { | ||
throw new \RuntimeException(sprintf('Generated autoloader class file not found at expected path: %s', GENERATED_AUTOLOADER_PATH)); | ||
} | ||
|
||
echo "Requiring composer autoloader: {$composerAutoloader}\n"; | ||
require $composerAutoloader; | ||
echo "Requiring generated autoloader: {$generatedAutoloader}\n"; | ||
require $generatedAutoloader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.