1 | <?php |
||
16 | class T3SalutationTest extends \PHPUnit_Framework_TestCase |
||
17 | { |
||
18 | private $object; |
||
19 | |||
20 | |||
21 | /** |
||
22 | * Sets up the fixture. This method is called before a test is executed. |
||
23 | */ |
||
24 | protected function setUp() |
||
28 | |||
29 | |||
30 | /** |
||
31 | * Tears down the fixture. This method is called after a test is executed. |
||
32 | */ |
||
33 | protected function tearDown() |
||
37 | |||
38 | |||
39 | public function testTranslate() |
||
43 | |||
44 | |||
45 | public function testTranslateMale() |
||
46 | { |
||
47 | $this->assertEquals( 0, $this->object->translate( \Aimeos\MShop\Common\Item\Address\Base::SALUTATION_MR ) ); |
||
48 | } |
||
49 | |||
50 | |||
51 | public function testTranslateFemale() |
||
55 | |||
56 | |||
57 | public function testTranslateFemale2() |
||
58 | { |
||
59 | $this->assertEquals( 2, $this->object->translate( \Aimeos\MShop\Common\Item\Address\Base::SALUTATION_MISS ) ); |
||
60 | } |
||
61 | |||
62 | |||
63 | public function testTranslateCompany() |
||
64 | { |
||
65 | $this->assertEquals( 10, $this->object->translate( \Aimeos\MShop\Common\Item\Address\Base::SALUTATION_COMPANY ) ); |
||
66 | } |
||
67 | |||
68 | |||
69 | public function testReverse() |
||
73 | |||
74 | |||
75 | public function testReverseMale() |
||
79 | |||
80 | |||
81 | public function testReverseFemale() |
||
85 | |||
86 | |||
87 | public function testReverseFemale2() |
||
88 | { |
||
91 | |||
92 | |||
93 | public function testReverseCompany() |
||
97 | } |
||
98 |