Compare commits
4
Commits
b2a2dc9d5e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a6779828c | ||
|
|
a3a2f630ac | ||
|
|
af2a902399 | ||
|
|
56342e2418 |
@@ -3,7 +3,9 @@ build
|
||||
cache
|
||||
stacks
|
||||
config.php
|
||||
Caddyfile
|
||||
.cache
|
||||
.config
|
||||
.local
|
||||
*.phar
|
||||
.phpunit.*
|
||||
@@ -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
|
||||
@@ -22,5 +22,6 @@ echo "<?php return array(" \
|
||||
" ); " > config.php
|
||||
|
||||
# Make cache folder
|
||||
|
||||
mkdir cache
|
||||
chown www-data:www-data cache
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
convertWarningsToExceptions="true"
|
||||
processIsolation="false"
|
||||
stopOnFailure="false"
|
||||
syntaxCheck="false"
|
||||
bootstrap="./tests/bootstrap.php">
|
||||
<testsuites>
|
||||
<testsuite name="Default">
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
namespace CloudObjects\PhpMAE;
|
||||
|
||||
use ML\IRI\IRI;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ClassValidatorTest extends \PHPUnit_Framework_TestCase {
|
||||
class ClassValidatorTest extends TestCase {
|
||||
|
||||
private $validator;
|
||||
|
||||
@@ -12,11 +13,12 @@ class ClassValidatorTest extends \PHPUnit_Framework_TestCase {
|
||||
return file_get_contents(__DIR__.'/fixtures/'.$filename);
|
||||
}
|
||||
|
||||
protected function setUp() {
|
||||
protected function setUp(): void {
|
||||
$this->validator = new ClassValidator;
|
||||
}
|
||||
|
||||
public function testValidate() {
|
||||
$this->addToAssertionCount(1);
|
||||
$this->validator->validate($this->loadFromFile('class1.php'),
|
||||
new IRI('coid://example.com/TestClass1'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user