mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 05:18:40 +00:00
update and fix phpunit config
This commit is contained in:
parent
340fdc4943
commit
a5ba70d40e
|
|
@ -189,7 +189,7 @@ abstract class FileAbstract implements ContainerInterface
|
||||||
$ctime = \filectime($this->path);
|
$ctime = \filectime($this->path);
|
||||||
|
|
||||||
$this->createdAt = (new \DateTimeImmutable())->setTimestamp($mtime === false ? 0 : $mtime);
|
$this->createdAt = (new \DateTimeImmutable())->setTimestamp($mtime === false ? 0 : $mtime);
|
||||||
$this->changedAt = (new \DateTimeImmutable())->setTimestamp($ctime === false ? 0 : $ctime);
|
$this->changedAt->setTimestamp($ctime === false ? 0 : $ctime);
|
||||||
|
|
||||||
$owner = \fileowner($this->path);
|
$owner = \fileowner($this->path);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -335,7 +335,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
$this->expectException(\phpOMS\DataStorage\Cache\Exception\InvalidConnectionConfigException::class);
|
$this->expectException(\phpOMS\DataStorage\Cache\Exception\InvalidConnectionConfigException::class);
|
||||||
|
|
||||||
$cache = new FileCache('/etc/invalidPathOrPermission^$:?><');
|
$cache = new FileCache("/root/etc/invalidPathOrPermission^$:?><");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,48 +1,40 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="Bootstrap.php" colors="true" stopOnError="true" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
|
||||||
bootstrap="Bootstrap.php"
|
<coverage includeUncoveredFiles="true" processUncoveredFiles="false">
|
||||||
colors="true"
|
<include>
|
||||||
stopOnError="true"
|
<directory suffix=".php">.*</directory>
|
||||||
stopOnFailure="false"
|
</include>
|
||||||
stopOnIncomplete="false"
|
<exclude>
|
||||||
stopOnSkipped="false"
|
<directory>../*/tests*</directory>
|
||||||
beStrictAboutTestsThatDoNotTestAnything="false"
|
<directory suffix="tpl.php">../*</directory>
|
||||||
>
|
<directory suffix="lang.php">../*</directory>
|
||||||
<testsuites>
|
<directory suffix="Test.php">../*</directory>
|
||||||
<testsuite name="phpOMS">
|
<directory>./Build</directory>
|
||||||
<directory>./</directory>
|
<directory>./Resources</directory>
|
||||||
<exclude>Module/ModuleManagerTest.php</exclude>
|
<directory>*vendor*</directory>
|
||||||
<exclude>./tests</exclude>
|
<directory>./vendor</directory>
|
||||||
<exclude>./vendor</exclude>
|
<directory>../vendor</directory>
|
||||||
<exclude>./Build</exclude>
|
</exclude>
|
||||||
<exclude>./Resources</exclude>
|
</coverage>
|
||||||
</testsuite>
|
<testsuites>
|
||||||
</testsuites>
|
<testsuite name="phpOMS">
|
||||||
<filter>
|
<directory>./</directory>
|
||||||
<whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="false">
|
<exclude>Module/ModuleManagerTest.php</exclude>
|
||||||
<directory suffix=".php">.*</directory>
|
<exclude>./tests</exclude>
|
||||||
<exclude>
|
<exclude>./vendor</exclude>
|
||||||
<directory>../*/tests*</directory>
|
<exclude>./Build</exclude>
|
||||||
<directory suffix="tpl.php">../*</directory>
|
<exclude>./Resources</exclude>
|
||||||
<directory suffix="lang.php">../*</directory>
|
</testsuite>
|
||||||
<directory suffix="Test.php">../*</directory>
|
</testsuites>
|
||||||
<directory>./Build</directory>
|
<groups>
|
||||||
<directory>./Resources</directory>
|
<exclude>
|
||||||
<directory>*vendor*</directory>
|
<group>volume</group>
|
||||||
<directory>./vendor</directory>
|
<group>maybe</group>
|
||||||
<directory>../vendor</directory>
|
</exclude>
|
||||||
</exclude>
|
</groups>
|
||||||
</whitelist>
|
<php>
|
||||||
</filter>
|
<const name="WEB_SERVER_HOST" value="localhost"/>
|
||||||
<groups>
|
<const name="WEB_SERVER_PORT" value="1234"/>
|
||||||
<exclude>
|
<const name="WEB_SERVER_DOCROOT" value="./"/>
|
||||||
<group>volume</group>
|
</php>
|
||||||
<group>maybe</group>
|
|
||||||
</exclude>
|
|
||||||
</groups>
|
|
||||||
<php>
|
|
||||||
<const name="WEB_SERVER_HOST" value="localhost" />
|
|
||||||
<const name="WEB_SERVER_PORT" value="1234" />
|
|
||||||
<const name="WEB_SERVER_DOCROOT" value="./" />
|
|
||||||
</php>
|
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user