WIP
This commit is contained in:
4 files changed
+9
-21
No files matched your search
@@ -3,3 +3,4 @@ vendor/
|
||||
*.phpunit.result.cache
|
||||
*.bat
|
||||
composer.lock
|
||||
phpunit.xml.dist.bak
|
||||
+6
-18
@@ -1,27 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit 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"
|
||||
>
|
||||
<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">
|
||||
<coverage processUncoveredFiles="true">
|
||||
<include>
|
||||
<directory suffix=".php">./src</directory>
|
||||
</include>
|
||||
</coverage>
|
||||
<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" />
|
||||
|
||||
@@ -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).
|
||||
*
|
||||
* $this->assertFalse($datetime->isCurrentMonth());
|
||||
|
||||
* @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.
|
||||
*
|
||||
|
||||
@@ -267,8 +267,6 @@ class ComparisionTest extends TestCase
|
||||
$this->assertFalse($datetime->isSameAs('Y-m-d'));
|
||||
$this->assertFalse($datetime->isCurrentYear());
|
||||
$this->assertFalse($datetime->isSameYear($target));
|
||||
$this->assertFalse($datetime->isCurrentMonth());
|
||||
$this->assertFalse($datetime->isSameMonth());
|
||||
$this->assertFalse($datetime->isSameDay($target));
|
||||
$this->assertTrue($datetime->isBirthday($target));
|
||||
$this->assertFalse($datetime->isSaturday());
|
||||
|
||||
Reference in new issue
Block a user