Add phpunit test to add all additions to smarty

This commit is contained in:
2024-12-27 10:30:27 +09:00
parent fd369a7115
commit 39bfcecd3f
9 changed files with 328 additions and 0 deletions

View File

@@ -47,6 +47,33 @@ Alternative setup composer local zip file repot:
1) Update and leep the label/pos changes
5) Create new release version as official relase number
## Test
After any update run `tools/phpunit` to test the compare output, also a visual check can be done by accessing the `test/` folder
- Translations should work
- pos/label names for checkbox/options should work
- get var output should work
- plugin test load should work
### For intelephense users when phpunit was installed as phar
Intelephense cannot directly access the phar file, if phpunit was installed as a phar file (eg via phive) then the following commands must be used to setup the intelephense parser
In the base folder:
```sh
php -r "(new Phar('/path/to/phive/folder/.phive/phars/phpunit-10.3.5.phar'))->extractTo('tools-libs/phpunit');"
```
Then open the vscode settings and set for the Folder (if multiple folders are in the workspace) or the Workspace the following setting
```txt
"intelephense.environment.includePaths": [
"/tools-libs/phpunit/"
]
```
## Updated files (different from master)
### New