|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* This file is part of the core-bundle package. |
|
5
|
|
|
* |
|
6
|
|
|
* (c) 2019 WEBEWEB |
|
7
|
|
|
* |
|
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
9
|
|
|
* file that was distributed with this source code. |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
namespace WBW\Bundle\CoreBundle\Tests\Icon\FontAwesome; |
|
13
|
|
|
|
|
14
|
|
|
use WBW\Bundle\CoreBundle\Icon\FontAwesome\FontAwesomeIconInterface; |
|
15
|
|
|
use WBW\Bundle\CoreBundle\Tests\AbstractTestCase; |
|
16
|
|
|
|
|
17
|
|
|
/** |
|
18
|
|
|
* Font Awesome icon interface test. |
|
19
|
|
|
* |
|
20
|
|
|
* @author webeweb <https://github.com/webeweb/> |
|
21
|
|
|
* @package WBW\Bundle\CoreBundle\Tests\Icon\FontAwesome |
|
22
|
|
|
*/ |
|
23
|
|
|
class FontAwesomeIconInterfaceTest extends AbstractTestCase { |
|
24
|
|
|
|
|
25
|
|
|
/** |
|
26
|
|
|
* Tests the __construct() method. |
|
27
|
|
|
* |
|
28
|
|
|
* @return void |
|
29
|
|
|
*/ |
|
30
|
|
|
public function test__construct(): void { |
|
31
|
|
|
|
|
32
|
|
|
$this->assertEquals("pulse", FontAwesomeIconInterface::FONT_AWESOME_ANIMATION_PULSE); |
|
33
|
|
|
$this->assertEquals("spin", FontAwesomeIconInterface::FONT_AWESOME_ANIMATION_SPIN); |
|
34
|
|
|
|
|
35
|
|
|
$this->assertEquals("", FontAwesomeIconInterface::FONT_AWESOME_FONT); |
|
36
|
|
|
$this->assertEquals("b", FontAwesomeIconInterface::FONT_AWESOME_FONT_BOLD); |
|
37
|
|
|
$this->assertEquals("l", FontAwesomeIconInterface::FONT_AWESOME_FONT_LIGHT); |
|
38
|
|
|
$this->assertEquals("r", FontAwesomeIconInterface::FONT_AWESOME_FONT_REGULAR); |
|
39
|
|
|
$this->assertEquals("s", FontAwesomeIconInterface::FONT_AWESOME_FONT_SOLID); |
|
40
|
|
|
|
|
41
|
|
|
$this->assertEquals("left", FontAwesomeIconInterface::FONT_AWESOME_PULL_LEFT); |
|
42
|
|
|
$this->assertEquals("right", FontAwesomeIconInterface::FONT_AWESOME_PULL_RIGHT); |
|
43
|
|
|
|
|
44
|
|
|
$this->assertEquals("2x", FontAwesomeIconInterface::FONT_AWESOME_SIZE_2X); |
|
45
|
|
|
$this->assertEquals("3x", FontAwesomeIconInterface::FONT_AWESOME_SIZE_3X); |
|
46
|
|
|
$this->assertEquals("4x", FontAwesomeIconInterface::FONT_AWESOME_SIZE_4X); |
|
47
|
|
|
$this->assertEquals("5x", FontAwesomeIconInterface::FONT_AWESOME_SIZE_5X); |
|
48
|
|
|
$this->assertEquals("6x", FontAwesomeIconInterface::FONT_AWESOME_SIZE_6X); |
|
49
|
|
|
$this->assertEquals("7x", FontAwesomeIconInterface::FONT_AWESOME_SIZE_7X); |
|
50
|
|
|
$this->assertEquals("8x", FontAwesomeIconInterface::FONT_AWESOME_SIZE_8X); |
|
51
|
|
|
$this->assertEquals("9x", FontAwesomeIconInterface::FONT_AWESOME_SIZE_9X); |
|
52
|
|
|
$this->assertEquals("10x", FontAwesomeIconInterface::FONT_AWESOME_SIZE_10X); |
|
53
|
|
|
$this->assertEquals("lg", FontAwesomeIconInterface::FONT_AWESOME_SIZE_LG); |
|
54
|
|
|
$this->assertEquals("sm", FontAwesomeIconInterface::FONT_AWESOME_SIZE_SM); |
|
55
|
|
|
$this->assertEquals("xs", FontAwesomeIconInterface::FONT_AWESOME_SIZE_XS); |
|
56
|
|
|
} |
|
57
|
|
|
} |
|
58
|
|
|
|