Compare commits

...
4 Commits
Author SHA1 Message Date
lukas 9a6779828c Removed configuration as now supported by base image 2026-08-21 14:34:37 +00:00
lukas a3a2f630ac Allow dynamic Caddy port configuration 2026-06-19 17:16:47 +00:00
lukas af2a902399 Removed unused fly.io configuration 2026-06-19 17:16:09 +00:00
lukas 56342e2418 Fixed phpUnit test 2026-06-19 17:14:44 +00:00
5 changed files with 8 additions and 25 deletions
+2
View File
@@ -3,7 +3,9 @@ build
cache cache
stacks stacks
config.php config.php
Caddyfile
.cache .cache
.config .config
.local .local
*.phar *.phar
.phpunit.*
-21
View File
@@ -1,21 +0,0 @@
app = "phpmae"
[[services]]
internal_port = 80
protocol = "tcp"
[services.concurrency]
hard_limit = 25
soft_limit = 20
[[services.ports]]
handlers = ["http"]
port = "80"
[[services.ports]]
handlers = ["tls", "http"]
port = "443"
[[services.tcp_checks]]
interval = 10000
timeout = 2000
+1
View File
@@ -22,5 +22,6 @@ echo "<?php return array(" \
" ); " > config.php " ); " > config.php
# Make cache folder # Make cache folder
mkdir cache mkdir cache
chown www-data:www-data cache chown www-data:www-data cache
-1
View File
@@ -7,7 +7,6 @@
convertWarningsToExceptions="true" convertWarningsToExceptions="true"
processIsolation="false" processIsolation="false"
stopOnFailure="false" stopOnFailure="false"
syntaxCheck="false"
bootstrap="./tests/bootstrap.php"> bootstrap="./tests/bootstrap.php">
<testsuites> <testsuites>
<testsuite name="Default"> <testsuite name="Default">
+4 -2
View File
@@ -3,8 +3,9 @@
namespace CloudObjects\PhpMAE; namespace CloudObjects\PhpMAE;
use ML\IRI\IRI; use ML\IRI\IRI;
use PHPUnit\Framework\TestCase;
class ClassValidatorTest extends \PHPUnit_Framework_TestCase { class ClassValidatorTest extends TestCase {
private $validator; private $validator;
@@ -12,11 +13,12 @@ class ClassValidatorTest extends \PHPUnit_Framework_TestCase {
return file_get_contents(__DIR__.'/fixtures/'.$filename); return file_get_contents(__DIR__.'/fixtures/'.$filename);
} }
protected function setUp() { protected function setUp(): void {
$this->validator = new ClassValidator; $this->validator = new ClassValidator;
} }
public function testValidate() { public function testValidate() {
$this->addToAssertionCount(1);
$this->validator->validate($this->loadFromFile('class1.php'), $this->validator->validate($this->loadFromFile('class1.php'),
new IRI('coid://example.com/TestClass1')); new IRI('coid://example.com/TestClass1'));
} }