WIP
This commit is contained in:
4 files changed
+9
-21
No files matched your search
@@ -3,3 +3,4 @@ vendor/
|
|||||||
*.phpunit.result.cache
|
*.phpunit.result.cache
|
||||||
*.bat
|
*.bat
|
||||||
composer.lock
|
composer.lock
|
||||||
|
phpunit.xml.dist.bak
|
||||||
+6
-18
@@ -1,27 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit backupGlobals="false"
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" beStrictAboutTestsThatDoNotTestAnything="false" bootstrap="tests/bootstrap.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnError="false" stopOnFailure="false" verbose="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
|
||||||
backupStaticAttributes="false"
|
<coverage processUncoveredFiles="true">
|
||||||
beStrictAboutTestsThatDoNotTestAnything="false"
|
<include>
|
||||||
bootstrap="tests/bootstrap.php"
|
<directory suffix=".php">./src</directory>
|
||||||
colors="true"
|
</include>
|
||||||
convertErrorsToExceptions="true"
|
</coverage>
|
||||||
convertNoticesToExceptions="true"
|
|
||||||
convertWarningsToExceptions="true"
|
|
||||||
processIsolation="false"
|
|
||||||
stopOnError="false"
|
|
||||||
stopOnFailure="false"
|
|
||||||
verbose="true"
|
|
||||||
>
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Verta Test Suite">
|
<testsuite name="Verta Test Suite">
|
||||||
<directory suffix="Test.php">./tests</directory>
|
<directory suffix="Test.php">./tests</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
<filter>
|
|
||||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
|
||||||
<directory suffix=".php">./src</directory>
|
|
||||||
</whitelist>
|
|
||||||
</filter>
|
|
||||||
<php>
|
<php>
|
||||||
<!--
|
<!--
|
||||||
<env name="REDIS_HOST" value="127.0.0.1" />
|
<env name="REDIS_HOST" value="127.0.0.1" />
|
||||||
|
|||||||
@@ -497,7 +497,8 @@ trait Comparison
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the passed in date is in the same month as the instance month (and year if needed).
|
* Checks if the passed in date is in the same month as the instance month (and year if needed).
|
||||||
*
|
* $this->assertFalse($datetime->isCurrentMonth());
|
||||||
|
|
||||||
* @param Verta|null $v The instance to compare with or null to use current day.
|
* @param Verta|null $v The instance to compare with or null to use current day.
|
||||||
* @param bool $ofSameYear Check if it is the same month in the same year.
|
* @param bool $ofSameYear Check if it is the same month in the same year.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -267,8 +267,6 @@ class ComparisionTest extends TestCase
|
|||||||
$this->assertFalse($datetime->isSameAs('Y-m-d'));
|
$this->assertFalse($datetime->isSameAs('Y-m-d'));
|
||||||
$this->assertFalse($datetime->isCurrentYear());
|
$this->assertFalse($datetime->isCurrentYear());
|
||||||
$this->assertFalse($datetime->isSameYear($target));
|
$this->assertFalse($datetime->isSameYear($target));
|
||||||
$this->assertFalse($datetime->isCurrentMonth());
|
|
||||||
$this->assertFalse($datetime->isSameMonth());
|
|
||||||
$this->assertFalse($datetime->isSameDay($target));
|
$this->assertFalse($datetime->isSameDay($target));
|
||||||
$this->assertTrue($datetime->isBirthday($target));
|
$this->assertTrue($datetime->isBirthday($target));
|
||||||
$this->assertFalse($datetime->isSaturday());
|
$this->assertFalse($datetime->isSaturday());
|
||||||
|
|||||||
Reference in new issue
Block a user