Added PhpUnit test files

This commit is contained in:
netkas 2024-10-29 00:40:04 -04:00
parent 92107d4018
commit 1b8813314e
5 changed files with 22 additions and 8 deletions

View file

@ -51,7 +51,7 @@ jobs:
- name: Build project
run: |
ncc build --config release --log-level debug
ncc build --config release --build-source --log-level debug
- name: Upload build artifact
uses: actions/upload-artifact@v4
@ -100,7 +100,7 @@ jobs:
- name: Build project
run: |
ncc build --config release-compressed --log-level debug
ncc build --config release-compressed --build-source --log-level debug
- name: Upload build artifact
uses: actions/upload-artifact@v4
@ -149,7 +149,7 @@ jobs:
- name: Build project
run: |
ncc build --config debug-compressed --log-level debug
ncc build --config debug-compressed --build-source --log-level debug
- name: Upload build artifact
uses: actions/upload-artifact@v4
@ -198,7 +198,7 @@ jobs:
- name: Build project
run: |
ncc build --config release-executable --log-level debug
ncc build --config release-executable --build-source --log-level debug
- name: Upload build artifact
uses: actions/upload-artifact@v4
@ -247,7 +247,7 @@ jobs:
- name: Build project
run: |
ncc build --config release-compressed-executable --log-level debug
ncc build --config release-compressed-executable --build-source --log-level debug
- name: Upload build artifact
uses: actions/upload-artifact@v4
@ -296,7 +296,7 @@ jobs:
- name: Build project
run: |
ncc build --config debug-compressed-executable --log-level debug
ncc build --config debug-compressed-executable --build-source --log-level debug
- name: Upload build artifact
uses: actions/upload-artifact@v4

View file

@ -5,7 +5,7 @@
<tool tool_name="PHPUnit">
<cache>
<versions>
<info id="Local" version="PHPUnit version can't be detected. Default PHP interpreter is not local" />
<info id="Local/home/netkas/phar/phpunit.phar" version="11.3.5" />
</versions>
</cache>
</tool>

2
.idea/php.xml generated
View file

@ -124,7 +124,7 @@
</component>
<component name="PhpUnit">
<phpunit_settings>
<PhpUnitSettings load_method="PHPUNIT_PHAR" custom_loader_path="$USER_HOME$/phpunit-9.5.phar" phpunit_phar_path="$USER_HOME$/phpunit-9.5.phar" />
<PhpUnitSettings load_method="PHPUNIT_PHAR" custom_loader_path="$USER_HOME$/phpunit-9.5.phar" phpunit_phar_path="$USER_HOME$/phar/phpunit.phar" />
</phpunit_settings>
</component>
<component name="PsalmOptionsConfiguration">

3
bootstrap.php Normal file
View file

@ -0,0 +1,3 @@
<?php
require 'ncc';
import('net.nosial.loglib');

11
phpunit.xml Normal file
View file

@ -0,0 +1,11 @@
<phpunit bootstrap="bootstrap.php">
<testsuites>
<testsuite name="LogLib Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="-1"/>
<server name="KERNEL_DIR" value="app/"/>
</php>
</phpunit>