Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"

dependencies:
- "highest"
Expand Down Expand Up @@ -101,6 +102,7 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"

dependencies:
- "highest"
Expand Down Expand Up @@ -146,6 +148,7 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"

dependencies:
- "lowest"
Expand Down Expand Up @@ -190,7 +193,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.2"
- "8.4"

dependencies:
- "highest"
Expand Down
5 changes: 5 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use PHPUnit\Framework\Attributes\DataProvider;
use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;
use Symfony\Component\TypeInfo\Type;
Expand All @@ -21,4 +22,8 @@
$config->ignoreErrorsOnPackage('symfony/polyfill-php83', [ErrorType::UNUSED_DEPENDENCY]);
}

if (!class_exists(DataProvider::class)) {
$config->ignoreUnknownClasses([DataProvider::class]);
}

return $config;
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": ">=8.1",
"doctrine/dbal": "^3.4 || ^4.0",
"doctrine/doctrine-bundle": "^1.9 || ^2.0",
"doctrine/doctrine-bundle": "^1.9 || ^2.0 || ^3.0",
"dragonmantank/cron-expression": "^2.2 || ^3.0",
"symfony/config": "^5.4 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
Expand All @@ -28,7 +28,7 @@
"ergebnis/composer-normalize": "^2.42",
"matthiasnoback/symfony-dependency-injection-test": "^4.3 || ^5.0 || ^6.0",
"phpdocumentor/reflection-docblock": "^5.3",
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^9.5 || ^12.0",
"psalm/plugin-phpunit": "^0.19",
"roave/security-advisories": "dev-latest",
"shipmonk/composer-dependency-analyser": "^1.8",
Expand Down
23 changes: 11 additions & 12 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" colors="true">
<coverage includeUncoveredFiles="true" processUncoveredFiles="true">
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="SetonoCronExpressionBundle Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" colors="true" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="SetonoCronExpressionBundle Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>
4 changes: 4 additions & 0 deletions tests/Validator/CronExpressionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Setono\CronExpressionBundle\Tests\Validator;

use Cron\CronExpression;
use PHPUnit\Framework\Attributes\DataProvider;
use Setono\CronExpressionBundle\Validator\CronExpression as Constraint;
use Setono\CronExpressionBundle\Validator\CronExpressionValidator;
use stdClass;
Expand Down Expand Up @@ -69,7 +70,10 @@ public function testExpectsStringCompatibleValue(): void
* @dataProvider getInvalidValues
*
* @param mixed $value
*
* @psalm-suppress UndefinedAttributeClass
*/
#[DataProvider('getInvalidValues')]
public function testInvalidValues($value, string $valueAsString): void
{
$constraint = new Constraint('myMessage');
Expand Down