Skip to content

Commit 9caacf7

Browse files
committed
Add Email Collection
1 parent f8e9142 commit 9caacf7

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

src/Debug/EmailCollection.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php declare(strict_types=1);
2+
/*
3+
* This file is part of Aplus Framework Email Library.
4+
*
5+
* (c) Natan Felles <[email protected]>
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\Email\Debug;
11+
12+
use Framework\Debug\Collection;
13+
14+
/**
15+
* Class EmailCollection.
16+
*
17+
* @package email
18+
*/
19+
class EmailCollection extends Collection
20+
{
21+
protected string $iconPath = __DIR__ . '/icon/email.svg';
22+
}

tests/Debug/EmailCollectionTest.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
/*
3+
* This file is part of Aplus Framework Email Library.
4+
*
5+
* (c) Natan Felles <[email protected]>
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\Email\Debug;
11+
12+
use Framework\Email\Debug\EmailCollection;
13+
use PHPUnit\Framework\TestCase;
14+
15+
final class EmailCollectionTest extends TestCase
16+
{
17+
protected EmailCollection $collection;
18+
19+
protected function setUp() : void
20+
{
21+
$this->collection = new EmailCollection('Email');
22+
}
23+
24+
public function testIconPath() : void
25+
{
26+
self::assertStringStartsWith('<svg ', $this->collection->getIcon());
27+
}
28+
}

0 commit comments

Comments
 (0)