Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/687-unique-rule' into 687-unique…
Browse files Browse the repository at this point in the history
…-rule
  • Loading branch information
arogachev committed Apr 10, 2024
2 parents 5ee1cf9 + da11a09 commit b64e2a1
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions tests/Rule/UniqueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,13 @@ public function dataValidationPassed(): array
'boolean values' => [[false, true], new Unique()],
'stringable values' => [
[
new class () implements Stringable
{
new class () implements Stringable {
public function __toString()
{
return 'a';
}
},
new class () implements Stringable
{
new class () implements Stringable {
public function __toString()
{
return 'b';
Expand Down Expand Up @@ -184,29 +182,25 @@ public function dataValidationFailed(): array
'boolean values' => [[false, true, false], new Unique(), ['' => [$message]]],
'stringable values' => [
[
new class () implements Stringable
{
new class () implements Stringable {
public function __toString()
{
return 'a';
}
},
new class () implements Stringable
{
new class () implements Stringable {
public function __toString()
{
return 'b';
}
},
new class () implements Stringable
{
new class () implements Stringable {
public function __toString()
{
return 'a';
}
},
new class () implements Stringable
{
new class () implements Stringable {
public function __toString()
{
return 'c';
Expand All @@ -230,14 +224,13 @@ public function __toString()
[
'a',
'b',
new class () implements Stringable
{
new class () implements Stringable {
public function __toString()
{
return 'a';
}
},
'c'
'c',
],
new Unique(),
['' => [$message]],
Expand Down

0 comments on commit b64e2a1

Please sign in to comment.