Skip to content

Commit ba2ff3e

Browse files
committed
Built-in rules are always available in the Validation collector
1 parent 7dc45ec commit ba2ff3e

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/Debug/ValidationCollector.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ protected function renderRuleset() : string
156156

157157
protected function renderValidatorsRules() : string
158158
{
159-
if (empty($this->validatorsRules)) {
160-
return '<p>No Validators rules set.</p>';
161-
}
162159
\ob_start() ?>
163160
<p>There are <?= \count($this->validatorsRules) ?> rules available:</p>
164161
<table>

tests/Debug/ValidationCollectorTest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,6 @@ public function testValidationRun() : void
8181
);
8282
}
8383

84-
public function testNoValidators() : void
85-
{
86-
$validation = new class() extends Validation {
87-
public function __construct()
88-
{
89-
}
90-
};
91-
$validation->setDebugCollector($this->collector);
92-
self::assertStringContainsString(
93-
'No Validators rules set',
94-
$this->collector->getContents()
95-
);
96-
}
97-
9884
public function testCustomValidatorsRules() : void
9985
{
10086
$validator = new class() extends Validator {

0 commit comments

Comments
 (0)