Skip to content

Commit

Permalink
Test debug collections
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Apr 6, 2024
1 parent 0253a23 commit 642ad26
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/Debug/AppCollectionTest.php
@@ -0,0 +1,28 @@
<?php
/*
* This file is part of Aplus Framework MVC Library.
*
* (c) Natan Felles <natanfelles@gmail.com>
*
* 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('<svg ', $this->collection->getIcon());
}
}
28 changes: 28 additions & 0 deletions tests/Debug/ViewsCollectionTest.php
@@ -0,0 +1,28 @@
<?php
/*
* This file is part of Aplus Framework MVC Library.
*
* (c) Natan Felles <natanfelles@gmail.com>
*
* 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('<svg ', $this->collection->getIcon());
}
}

0 comments on commit 642ad26

Please sign in to comment.