🤖 Auto commit for release 'develop' on 2025-05-24

This commit is contained in:
JC5
2025-05-24 06:24:17 +02:00
parent 1ec5ee08aa
commit 63d051d9ba
63 changed files with 203 additions and 279 deletions

View File

@@ -38,10 +38,9 @@ use Tests\integration\TestCase;
*/
final class BillDateCalculatorTest extends TestCase
{
private BillDateCalculator $calculator;
private BillDateCalculator $calculator;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->calculator = new BillDateCalculator();
@@ -49,8 +48,6 @@ final class BillDateCalculatorTest extends TestCase
/**
* Stupid long method names I'm not going to do that.
*
*
*/
#[DataProvider('provideDates')]
public function testGivenSomeDataItWorks(Carbon $earliest, Carbon $latest, Carbon $billStart, string $period, int $skip, ?Carbon $lastPaid, array $expected): void

View File

@@ -35,7 +35,6 @@ use Tests\integration\TestCase;
*/
final class NavigationCustomEndOfPeriodTest extends TestCase
{
/**
* @preserveGlobalState disabled
*/

View File

@@ -66,8 +66,6 @@ final class CalculatorTest extends TestCase
}
/**
*
*
* @throws IntervalException
*/
#[DataProvider('provideAllPeriodicity')]
@@ -97,8 +95,6 @@ final class CalculatorTest extends TestCase
}
/**
*
*
* @throws IntervalException
*/
#[DataProvider('provideSkippedIntervals')]

View File

@@ -32,9 +32,6 @@ abstract class IntervalTestCase extends TestCase
{
abstract public static function provideIntervals(): array;
/**
*
*/
#[DataProvider('provider')]
public function testGivenAnEpochWhenCallTheNextDateThenReturnsTheExpectedDateSuccessful(IntervalProvider $provider): void
{

View File

@@ -41,17 +41,14 @@ use Tests\integration\TestCase;
*/
final class NavigationAddPeriodTest extends TestCase
{
private Navigation $navigation;
private Navigation $navigation;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->navigation = new Navigation();
}
/**
*
*/
#[DataProvider('providePeriodsWithSkippingParam')]
public function testGivenAFrequencyAndSkipIntervalWhenCalculateTheDateThenReturnsTheSkippedDateSuccessful(int $skip, string $frequency, Carbon $from, Carbon $expected): void
{
@@ -104,9 +101,6 @@ final class NavigationAddPeriodTest extends TestCase
}
}
/**
*
*/
#[DataProvider('providePeriods')]
public function testGivenAFrequencyWhenCalculateTheDateThenReturnsTheExpectedDateSuccessful(string $frequency, Carbon $from, Carbon $expected): void
{
@@ -140,9 +134,6 @@ final class NavigationAddPeriodTest extends TestCase
];
}
/**
*
*/
#[DataProvider('provideFrequencies')]
public function testGivenAIntervalWhenCallTheNextDateByIntervalMethodThenReturnsTheExpectedDateSuccessful(Periodicity $periodicity, Carbon $from, Carbon $expected): void
{
@@ -178,9 +169,6 @@ final class NavigationAddPeriodTest extends TestCase
];
}
/**
*
*/
#[DataProvider('provideMonthPeriods')]
public function testGivenAMonthFrequencyWhenCalculateTheDateThenReturnsTheLastDayOfMonthSuccessful(string $frequency, Carbon $from, Carbon $expected): void
{

View File

@@ -42,15 +42,12 @@ final class NavigationEndOfPeriodTest extends TestCase
{
private Navigation $navigation;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->navigation = new Navigation();
}
/**
*
*/
#[DataProvider('provideDates')]
public function testGivenADateAndFrequencyWhenCalculateTheDateThenReturnsTheExpectedDateSuccessful(string $frequency, Carbon $from, Carbon $expected): void
{
@@ -89,9 +86,6 @@ final class NavigationEndOfPeriodTest extends TestCase
];
}
/**
*
*/
#[DataProvider('provideUnknownFrequencies')]
public function testGivenADateAndUnknownFrequencyWhenCalculateTheDateThenReturnsTheSameDateSuccessful(string $frequency, Carbon $from, Carbon $expected): void
{

View File

@@ -41,15 +41,12 @@ final class NavigationPreferredCarbonFormatByPeriodTest extends TestCase
{
private Navigation $navigation;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->navigation = new Navigation();
}
/**
*
*/
#[DataProvider('providePeriods')]
public function testGivenAPeriodWhenCallPreferredCarbonFormatByPeriodThenReturnsExpectedFormat(string $period, string $expected): void
{

View File

@@ -42,15 +42,12 @@ final class NavigationPreferredCarbonFormatTest extends TestCase
{
private Navigation $navigation;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->navigation = new Navigation();
}
/**
*
*/
#[DataProvider('providePeriods')]
public function testGivenStartAndEndDatesWhenCallPreferredCarbonFormatThenReturnsTheExpectedFormatSuccessful(Carbon $start, Carbon $end, string $expected): void
{

View File

@@ -42,15 +42,12 @@ final class NavigationPreferredEndOfPeriodTest extends TestCase
{
private Navigation $navigation;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->navigation = new Navigation();
}
/**
*
*/
#[DataProvider('providePeriods')]
public function testGivenStartAndEndDatesWhenCallPreferredEndOfPeriodThenReturnsTheExpectedFormatSuccessful(Carbon $start, Carbon $end, string $expected): void
{

View File

@@ -42,14 +42,12 @@ final class NavigationPreferredRangeFormatTest extends TestCase
{
private Navigation $navigation;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->navigation = new Navigation();
}
/**
*
*/
#[DataProvider('providePeriods')]
public function testGivenStartAndEndDatesWhenCallPreferredRangeFormatThenReturnsTheExpectedFormatSuccessful(Carbon $start, Carbon $end, string $expected): void
{

View File

@@ -40,17 +40,14 @@ use Tests\integration\TestCase;
*/
final class NavigationPreferredSqlFormatTest extends TestCase
{
private Navigation $navigation;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->navigation = new Navigation();
}
/**
*
*/
#[DataProvider('provideDates')]
public function testGivenStartAndEndDatesWhenCallPreferredSqlFormatThenReturnsTheExpectedFormatSuccessful(Carbon $start, Carbon $end, string $expected): void
{

View File

@@ -43,14 +43,12 @@ final class NavigationStartOfPeriodTest extends TestCase
{
private Navigation $navigation;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->navigation = new Navigation();
}
/**
*
*/
#[DataProvider('provideDates')]
public function testGivenADateAndFrequencyWhenCalculateTheDateThenReturnsTheExpectedDateSuccessful(string $frequency, Carbon $from, Carbon $expected): void
{
@@ -88,9 +86,6 @@ final class NavigationStartOfPeriodTest extends TestCase
];
}
/**
*
*/
#[DataProvider('provideUnknownFrequencies')]
public function testGivenADateAndUnknownFrequencyWhenCalculateTheDateThenReturnsTheSameDateSuccessful(string $frequency, Carbon $from, Carbon $expected): void
{

View File

@@ -17,8 +17,6 @@ abstract class AbstractQueryParserInterfaceParseQueryTester extends TestCase
abstract protected function createParser(): QueryParserInterface;
/**
*
*
* @param string $query The query string to parse
* @param Node $expected The expected parse result
*/