mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 23:59:51 +01:00
Upgrade "phpunit/phpunit"
This commit also replaces PHPUnit annotations with attributes. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
9a19b235f8
commit
12c145756c
167 changed files with 1017 additions and 1360 deletions
|
|
@ -9,18 +9,18 @@ declare(strict_types=1);
|
|||
|
||||
namespace Respect\Validation\Exceptions;
|
||||
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\Attributes\Group;
|
||||
use PHPUnit\Framework\Attributes\Test;
|
||||
use Respect\Validation\Message\Formatter;
|
||||
use Respect\Validation\Message\Stringifier\KeepOriginalStringName;
|
||||
use Respect\Validation\Test\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Respect\Validation\Exceptions\NestedValidationException
|
||||
*/
|
||||
#[Group('core')]
|
||||
#[CoversClass(NestedValidationException::class)]
|
||||
final class NestedValidationExceptionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
#[Test]
|
||||
public function getChildrenShouldReturnExceptionAddedByAddRelated(): void
|
||||
{
|
||||
$composite = new AttributeException('input', 'id', [], new Formatter('strval', new KeepOriginalStringName()));
|
||||
|
|
@ -30,9 +30,7 @@ final class NestedValidationExceptionTest extends TestCase
|
|||
self::assertContainsOnly(IntValException::class, $composite->getChildren());
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
#[Test]
|
||||
public function addingTheSameInstanceShouldAddJustOneSingleReference(): void
|
||||
{
|
||||
$composite = new AttributeException('input', 'id', [], new Formatter('strval', new KeepOriginalStringName()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue