File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+ /*
3+ * This file is part of Aplus Framework Validation Library.
4+ *
5+ * (c) Natan Felles <natanfelles@gmail.com>
6+ *
7+ * For the full copyright and license information, please view the LICENSE
8+ * file that was distributed with this source code.
9+ */
10+ namespace Framework \Validation \Debug ;
11+
12+ use Framework \Debug \Collection ;
13+
14+ /**
15+ * Class ValidationCollection.
16+ *
17+ * @package validation
18+ */
19+ class ValidationCollection extends Collection
20+ {
21+ protected string $ iconPath = __DIR__ . '/icons/validation.svg ' ;
22+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ /*
3+ * This file is part of Aplus Framework Validation Library.
4+ *
5+ * (c) Natan Felles <natanfelles@gmail.com>
6+ *
7+ * For the full copyright and license information, please view the LICENSE
8+ * file that was distributed with this source code.
9+ */
10+ namespace Tests \Validation \Debug ;
11+
12+ use Framework \Validation \Debug \ValidationCollection ;
13+ use PHPUnit \Framework \TestCase ;
14+
15+ final class ValidationCollectionTest extends TestCase
16+ {
17+ protected ValidationCollection $ collection ;
18+
19+ protected function setUp () : void
20+ {
21+ $ this ->collection = new ValidationCollection ('Validation ' );
22+ }
23+
24+ public function testIcon () : void
25+ {
26+ self ::assertStringStartsWith ('<svg ' , $ this ->collection ->getIcon ());
27+ }
28+ }
You can’t perform that action at this time.
0 commit comments