File tree Expand file tree Collapse file tree 4 files changed +52
-1
lines changed Expand file tree Collapse file tree 4 files changed +52
-1
lines changed Original file line number Diff line number Diff line change 1
1
version : " 3"
2
2
services :
3
3
package :
4
- image : registry.gitlab.com/aplus-framework/images/package:2
4
+ image : registry.gitlab.com/aplus-framework/images/package:4
5
5
container_name : package-language
6
6
working_dir : /package
7
7
volumes :
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 Language 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 \Language \Debug ;
11
+
12
+ use Framework \Debug \Collection ;
13
+
14
+ /**
15
+ * Class LanguageCollection.
16
+ *
17
+ * @package language
18
+ */
19
+ class LanguageCollection extends Collection
20
+ {
21
+ protected string $ iconPath = __DIR__ . '/icons/language.svg ' ;
22
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /*
3
+ * This file is part of Aplus Framework Language 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 \Language \Debug ;
11
+
12
+ use Framework \Language \Debug \LanguageCollection ;
13
+ use PHPUnit \Framework \TestCase ;
14
+
15
+ final class LanguageCollectionTest extends TestCase
16
+ {
17
+ protected LanguageCollection $ collection ;
18
+
19
+ protected function setUp () : void
20
+ {
21
+ $ this ->collection = new LanguageCollection ('Language ' );
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