1 | <?php |
||
16 | class DimensionValidatorTest extends \PHPUnit_Framework_TestCase { |
||
17 | |||
18 | /** |
||
19 | * @var DimensionValidator |
||
20 | */ |
||
21 | private $validator; |
||
22 | |||
23 | protected function setUp() { |
||
26 | |||
27 | public function testWhenAutoIsNotAllowed_autoIsNotValid() { |
||
31 | |||
32 | private function assertIsNotValid( $value ) { |
||
35 | |||
36 | public function testWhenAutoIsAllowed_autoIsValid() { |
||
40 | |||
41 | private function assertIsValid( $value ) { |
||
44 | |||
45 | public function testUsingDefaultSettings_pxIsAllowed() { |
||
48 | |||
49 | public function testUsingDefaultSettings_NoUnitIsAllowed() { |
||
52 | |||
53 | public function testUsingDefaultSettings_trailingNewlineIsInvalid() { |
||
56 | |||
57 | public function testGivenUpperBound_valueUnderIsValid() { |
||
61 | |||
62 | public function testGivenUpperBound_valueEqualIsValid() { |
||
66 | |||
67 | public function testGivenUpperBound_valueOverIsInvalid() { |
||
71 | |||
72 | public function testUsingDefaultSettings_percentageIsNotValid() { |
||
75 | |||
76 | public function testWhenPercentageInUnitList_percentageValid() { |
||
80 | |||
81 | public function testGivenLowerPercentageBound_valueOverIsValid() { |
||
86 | |||
87 | public function testGivenLowerPercentageBound_valueEqualIsValid() { |
||
92 | |||
93 | public function testGivenLowerPercentageBound_valueUnderIsNotValid() { |
||
98 | |||
99 | public function testInvalidValuesAreInvalid() { |
||
106 | |||
107 | } |
||
108 |