NOTE: All tests are to be performed on PHP 7. There are virtual machines with PHP 7 if you don't have it. The mod-rewrite must also be enabled.
Part 1
- in IDE:
- open /system/debug.php file for editing
- uncomment 'DBG_CACHE_URLS' => 0, line and save changes
- on Front-End
- open hompeage (the / url)
- confirm, that the homepage is actually displayed (not any other page)
- confirm, that debugger doesn't contain any notices about $Array usage
- click on Directory link top menu
- confirm, that the Directory category is actually displayed (not any other page)
- confirm, that debugger doesn't contain any notices about $Array usage
Part 2
- in IDE:
- copy /index.php into /test.php
- replace
$application->Run(); $application->Done();
with
$application->UnitConfigReader->iterateConfigs( function ($prefix, &$config_data, array $params) { echo $prefix . '<br/>' . PHP_EOL; }, array() );
- open /test.php in browser or CLI
- confirm, that prefixes from all registered unit configs are displayed