-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bc209b
commit aec99df
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of Aplus Framework Language 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 Framework\Language\Debug; | ||
|
||
use Framework\Debug\Collection; | ||
|
||
/** | ||
* Class LanguageCollection. | ||
* | ||
* @package language | ||
*/ | ||
class LanguageCollection extends Collection | ||
{ | ||
protected string $iconPath = __DIR__ . '/icons/language.svg'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/* | ||
* This file is part of Aplus Framework Language 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\Language\Debug; | ||
|
||
use Framework\Language\Debug\LanguageCollection; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
final class LanguageCollectionTest extends TestCase | ||
{ | ||
protected LanguageCollection $collection; | ||
|
||
protected function setUp() : void | ||
{ | ||
$this->collection = new LanguageCollection('Language'); | ||
} | ||
|
||
public function testIcon() : void | ||
{ | ||
self::assertStringStartsWith('<svg ', $this->collection->getIcon()); | ||
} | ||
} |