These are the fast checks for the demo's reference geometry and cleanup guards. More...
Go to the source code of this file.
Functions | |
| demoCheck ($expected, $actual, string $label) | |
| This compares one test result with its expected value. | |
| demoFeature (string $zone, array $rings) | |
| This constructs the decoded Feature fields needed by the reference collector. | |
Variables | |
| $cases | |
| $checks | |
| This counts successful assertions in the fast demo checks. | |
| $circle | |
| $directory | |
| $environment ['LGV_TZ_DEMO_PORT'] | |
| $environment | |
| $error | |
| $firstEdge | |
| $hole | |
| $outer | |
| $process | |
| $source | |
| $vertices | |
| finally | |
| try | |
© Copyright 2023-2026, Little Green Viper Software Development LLC
LICENSE:
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Little Green Viper Software Development LLC
Run composer test:demo after installing development dependencies. Small, known geometries check holes, ocean fallback, boundary offsets, and decoding-block transitions. Cleanup checks invoke a separate worker with test records that are refused before any database operation. No download or running MySQL server is required.
Definition in file demo.php.
| demoCheck | ( | $expected, | |
| $actual, | |||
| string | $label ) |
| RuntimeException | if the values differ, including a description of the failed check. |
| $expected | The independently specified value expected from the check. |
| $actual | The value returned by the operation under test. |
| $label | The description included in a failure message. |
Definition at line 46 of file demo.php.
References $checks, and demoCheck().
Referenced by demoCheck().
| demoFeature | ( | string | $zone, |
| array | $rings ) |
| $zone | The zone label for the test geometry. |
| $rings | The exterior ring, followed by any hole rings. |
Definition at line 61 of file demo.php.
References $rings, and demoFeature().
Referenced by demoFeature().
| $cases |
Definition at line 82 of file demo.php.
Referenced by DemoSourceGeometry\casesForLargest().
| $directory |
Definition at line 107 of file demo.php.
Referenced by demoCleanup(), demoCreateDatabase(), demoInstall(), demoRemoveDownloads(), demoRun(), deployExistingInstallation(), deployRemoveTree(), LGV_TZ_Lookup_Setup\install(), and LGV_TZ_Lookup_Setup\latestBoundaries().
| $process |
Definition at line 113 of file demo.php.
Referenced by deployAsk().
| $source |
Definition at line 67 of file demo.php.
Referenced by deployCopyTree().