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

api-platform / core / 13203378522

07 Feb 2025 03:56PM UTC coverage: 8.501% (+0.7%) from 7.837%
13203378522

push

github

soyuka
Merge 4.1

111 of 490 new or added lines in 51 files covered. (22.65%)

5590 existing lines in 163 files now uncovered.

13345 of 156987 relevant lines covered (8.5%)

22.88 hits per line

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

0.0
/tests/Fixtures/DummyValidatedEntity.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Tests\Fixtures;
15

16
use Symfony\Component\Validator\Constraints as Assert;
17

18
/**
19
 * Dummy Validated Entity.
20
 *
21
 * @author Baptiste Meyer <baptiste.meyer@gmail.com>
22
 */
23
class DummyValidatedEntity
24
{
25
    /**
26
     * @var int A dummy ID
27
     */
28
    public $dummyId;
29

30
    /**
31
     * @var string A dummy
32
     */
33
    #[Assert\NotBlank]
34
    #[Assert\Length(max: 4, min: 10)]
35
    #[Assert\Regex(pattern: '/^dummy$/')]
36
    public $dummy;
37

38
    /**
39
     * @var string
40
     */
41
    #[Assert\Email]
42
    #[Assert\NotBlank(allowNull: true)]
43
    public $dummyEmail;
44

45
    /**
46
     * @var string
47
     */
48
    #[Assert\Uuid]
49
    public $dummyUuid;
50

51
    /**
52
     * @var string
53
     */
54
    #[Assert\Ip]
55
    public $dummyIpv4;
56

57
    /**
58
     * @var string
59
     */
60
    #[Assert\Ip(version: '6')]
61
    public $dummyIpv6;
62

63
    /**
64
     * @var \DateTimeInterface A dummy date
65
     */
66
    #[Assert\Date]
67
    public $dummyDate;
68

69
    /**
70
     * @var string A dummy group
71
     */
72
    #[Assert\NotNull(groups: ['dummy'])]
73
    public $dummyGroup;
74

75
    /**
76
     * @var string A dummy url
77
     */
78
    #[Assert\Url]
79
    public $dummyUrl;
80

81
    /**
82
     * @return string[]
83
     */
84
    public static function getValidationGroups(): array
85
    {
UNCOV
86
        return ['dummy'];
×
87
    }
88
}
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