From 642ad260154b03119297824b47c9adae6424420e Mon Sep 17 00:00:00 2001 From: Natan Felles Date: Sat, 6 Apr 2024 20:50:26 -0300 Subject: [PATCH] Test debug collections --- tests/Debug/AppCollectionTest.php | 28 ++++++++++++++++++++++++++++ tests/Debug/ViewsCollectionTest.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 tests/Debug/AppCollectionTest.php create mode 100644 tests/Debug/ViewsCollectionTest.php diff --git a/tests/Debug/AppCollectionTest.php b/tests/Debug/AppCollectionTest.php new file mode 100644 index 0000000..ac56ad4 --- /dev/null +++ b/tests/Debug/AppCollectionTest.php @@ -0,0 +1,28 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace Tests\MVC\Debug; + +use Framework\MVC\Debug\AppCollection; +use PHPUnit\Framework\TestCase; + +final class AppCollectionTest extends TestCase +{ + protected AppCollection $collection; + + protected function setUp() : void + { + $this->collection = new AppCollection('App'); + } + + public function testIcon() : void + { + self::assertStringStartsWith('collection->getIcon()); + } +} diff --git a/tests/Debug/ViewsCollectionTest.php b/tests/Debug/ViewsCollectionTest.php new file mode 100644 index 0000000..a852854 --- /dev/null +++ b/tests/Debug/ViewsCollectionTest.php @@ -0,0 +1,28 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace Tests\MVC\Debug; + +use Framework\MVC\Debug\ViewsCollection; +use PHPUnit\Framework\TestCase; + +final class ViewsCollectionTest extends TestCase +{ + protected ViewsCollection $collection; + + protected function setUp() : void + { + $this->collection = new ViewsCollection('Views'); + } + + public function testIcon() : void + { + self::assertStringStartsWith('collection->getIcon()); + } +}