1 | <?php |
||
17 | class DimensionValidatorTest extends PHPUnit_Framework_TestCase { |
||
18 | |||
19 | /** |
||
20 | * @var DimensionValidator |
||
21 | */ |
||
22 | private $validator; |
||
23 | |||
24 | protected function setUp() { |
||
27 | |||
28 | public function testWhenAutoIsNotAllowed_autoIsNotValid() { |
||
32 | |||
33 | private function assertIsNotValid( $value ) { |
||
36 | |||
37 | public function testWhenAutoIsAllowed_autoIsValid() { |
||
41 | |||
42 | private function assertIsValid( $value ) { |
||
45 | |||
46 | public function testUsingDefaultSettings_pxIsAllowed() { |
||
49 | |||
50 | public function testUsingDefaultSettings_NoUnitIsAllowed() { |
||
53 | |||
54 | public function testUsingDefaultSettings_trailingNewlineIsInvalid() { |
||
57 | |||
58 | public function testGivenUpperBound_valueUnderIsValid() { |
||
62 | |||
63 | public function testGivenUpperBound_valueEqualIsValid() { |
||
67 | |||
68 | public function testGivenUpperBound_valueOverIsInvalid() { |
||
72 | |||
73 | public function testUsingDefaultSettings_percentageIsNotValid() { |
||
76 | |||
77 | public function testWhenPercentageInUnitList_percentageValid() { |
||
81 | |||
82 | public function testGivenLowerPercentageBound_valueOverIsValid() { |
||
87 | |||
88 | public function testGivenLowerPercentageBound_valueEqualIsValid() { |
||
93 | |||
94 | public function testGivenLowerPercentageBound_valueUnderIsNotValid() { |
||
99 | |||
100 | public function testInvalidValuesAreInvalid() { |
||
107 | |||
108 | } |
||
109 |