• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DoclerLabs / api-client-generator / 21433000758

28 Jan 2026 09:39AM UTC coverage: 86.69% (-0.3%) from 86.973%
21433000758

Pull #131

github

web-flow
Bump phpunit/phpunit from 9.5.9 to 9.6.33

Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.9 to 9.6.33.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.33/ChangeLog-9.6.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.9...9.6.33)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-version: 9.6.33
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #131: Bump phpunit/phpunit from 9.5.9 to 9.6.33

3465 of 3997 relevant lines covered (86.69%)

7.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/src/Entity/Constraint/MaxItemsConstraint.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace DoclerLabs\ApiClientGenerator\Entity\Constraint;
6

7
use DoclerLabs\ApiClientGenerator\Ast\Builder\CodeBuilder;
8
use PhpParser\Node\Expr;
9
use PhpParser\Node\Expr\Variable;
10

11
class MaxItemsConstraint implements ConstraintInterface
12
{
13
    public function __construct(private ?int $maxItems)
14
    {
15
    }
3✔
16

17
    public function exists(): bool
18
    {
19
        return $this->maxItems !== null;
2✔
20
    }
21

22
    public function getIfCondition(Variable $variable, CodeBuilder $builder): Expr
23
    {
24
        return $builder->compare(
×
25
            $builder->funcCall('count', [$variable]),
×
26
            '>',
×
27
            $builder->val($this->maxItems)
×
28
        );
×
29
    }
30

31
    public function getExceptionMessage(): string
32
    {
33
        return sprintf('Expected max items: `%s`.', $this->maxItems);
×
34
    }
35
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc