This commit is contained in:
Farhad Zand committed 2022-01-16 12:52:37 +03:30
1 parent 4e3ebda436
commit 2ecdd11421
4 files changed
+17 -29

No files matched your search

+1
View File
@@ -3,3 +3,4 @@ vendor/
*.phpunit.result.cache *.phpunit.result.cache
*.bat *.bat
composer.lock composer.lock
phpunit.xml.dist.bak
+14 -26
View File
@@ -1,31 +1,19 @@
<?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" <testsuites>
convertWarningsToExceptions="true" <testsuite name="Verta Test Suite">
processIsolation="false" <directory suffix="Test.php">./tests</directory>
stopOnError="false" </testsuite>
stopOnFailure="false" </testsuites>
verbose="true" <php>
> <!--
<testsuites>
<testsuite name="Verta Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<php>
<!--
<env name="REDIS_HOST" value="127.0.0.1" /> <env name="REDIS_HOST" value="127.0.0.1" />
<env name="REDIS_PORT" value="6379" /> <env name="REDIS_PORT" value="6379" />
--> -->
</php> </php>
</phpunit> </phpunit>
+2 -1
View File
@@ -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.
* *
-2
View File
@@ -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());