@@ -9,149 +9,149 @@ class PropertiesTest extends TestCase
9
9
{
10
10
public function testShouldReturnTrueWhenGivenStandardPropertyExists ()
11
11
{
12
- $ oProperties = new Properties ();
13
- $ this ->assertTrue ($ oProperties ->propertyExists ('align-content ' ));
12
+ $ properties = new Properties ();
13
+ $ this ->assertTrue ($ properties ->propertyExists ('align-content ' ));
14
14
}
15
15
16
16
public function testShouldReturnTrueWhenGivenConstructorStandardPropertyExists ()
17
17
{
18
- $ oProperties = new Properties ();
19
- $ this ->assertTrue ($ oProperties ->propertyExists ('-moz-align-content ' ));
18
+ $ properties = new Properties ();
19
+ $ this ->assertTrue ($ properties ->propertyExists ('-moz-align-content ' ));
20
20
}
21
21
22
22
public function testShouldReturnTrueWhenGivenConstructorNonStandardPropertyExists ()
23
23
{
24
- $ oProperties = new Properties ();
25
- $ this ->assertTrue ($ oProperties ->propertyExists ('-moz-font-smoothing ' ));
24
+ $ properties = new Properties ();
25
+ $ this ->assertTrue ($ properties ->propertyExists ('-moz-font-smoothing ' ));
26
26
}
27
27
28
28
public function testShouldReturnTrueWhenGivenPropertyDoesNotExist ()
29
29
{
30
- $ oProperties = new Properties ();
31
- $ this ->assertFalse ($ oProperties ->propertyExists ('-wrong-font-smoothing ' ));
30
+ $ properties = new Properties ();
31
+ $ this ->assertFalse ($ properties ->propertyExists ('-wrong-font-smoothing ' ));
32
32
}
33
33
34
34
public function testGetAllowedIndentationChars ()
35
35
{
36
- $ oProperties = new Properties ();
37
- $ this ->assertEquals ([" " ], $ oProperties ->getAllowedIndentationChars ());
36
+ $ properties = new Properties ();
37
+ $ this ->assertEquals ([" " ], $ properties ->getAllowedIndentationChars ());
38
38
}
39
39
40
40
public function testSetAllowedIndentationChars ()
41
41
{
42
- $ oProperties = new Properties ();
42
+ $ properties = new Properties ();
43
43
$ aAllowedIndentationChars = ["\t" ];
44
- $ oProperties ->setAllowedIndentationChars ($ aAllowedIndentationChars );
45
- $ this ->assertEquals ($ aAllowedIndentationChars , $ oProperties ->getAllowedIndentationChars ());
44
+ $ properties ->setAllowedIndentationChars ($ aAllowedIndentationChars );
45
+ $ this ->assertEquals ($ aAllowedIndentationChars , $ properties ->getAllowedIndentationChars ());
46
46
}
47
47
48
48
public function testShouldReturnTrueWhenGivenCharIsAnAllowedIndentationChar ()
49
49
{
50
- $ oProperties = new Properties ();
51
- $ this ->assertTrue ($ oProperties ->isAllowedIndentationChar (" " ));
50
+ $ properties = new Properties ();
51
+ $ this ->assertTrue ($ properties ->isAllowedIndentationChar (" " ));
52
52
}
53
53
54
54
public function testShouldReturnTrueWhenGivenCharIsNotAnAllowedIndentationChar ()
55
55
{
56
- $ oProperties = new Properties ();
57
- $ this ->assertFalse ($ oProperties ->isAllowedIndentationChar ("\t" ));
56
+ $ properties = new Properties ();
57
+ $ this ->assertFalse ($ properties ->isAllowedIndentationChar ("\t" ));
58
58
}
59
59
60
60
public function testMergeConstructorsShouldDisableAContructor ()
61
61
{
62
- $ oProperties = new Properties ();
63
- $ this ->assertTrue ($ oProperties ->propertyExists ('-moz-font-smoothing ' ));
62
+ $ properties = new Properties ();
63
+ $ this ->assertTrue ($ properties ->propertyExists ('-moz-font-smoothing ' ));
64
64
65
- $ oProperties ->mergeConstructors (['moz ' => false ]);
66
- $ this ->assertFalse ($ oProperties ->propertyExists ('-moz-font-smoothing ' ));
65
+ $ properties ->mergeConstructors (['moz ' => false ]);
66
+ $ this ->assertFalse ($ properties ->propertyExists ('-moz-font-smoothing ' ));
67
67
}
68
68
69
69
public function testMergeConstructorsShouldAddAContructor ()
70
70
{
71
- $ oProperties = new Properties ();
72
- $ this ->assertFalse ($ oProperties ->propertyExists ('-new-font-smoothing ' ));
71
+ $ properties = new Properties ();
72
+ $ this ->assertFalse ($ properties ->propertyExists ('-new-font-smoothing ' ));
73
73
74
- $ oProperties ->mergeConstructors (['new ' => true ]);
75
- $ this ->assertTrue ($ oProperties ->propertyExists ('-new-font-smoothing ' ));
74
+ $ properties ->mergeConstructors (['new ' => true ]);
75
+ $ this ->assertTrue ($ properties ->propertyExists ('-new-font-smoothing ' ));
76
76
}
77
77
78
78
public function testMergeStandardsShouldDisableAContructor ()
79
79
{
80
- $ oProperties = new Properties ();
81
- $ this ->assertTrue ($ oProperties ->propertyExists ('align-content ' ));
80
+ $ properties = new Properties ();
81
+ $ this ->assertTrue ($ properties ->propertyExists ('align-content ' ));
82
82
83
- $ oProperties ->mergeStandards (['align-content ' => false ]);
84
- $ this ->assertFalse ($ oProperties ->propertyExists ('align-content ' ));
83
+ $ properties ->mergeStandards (['align-content ' => false ]);
84
+ $ this ->assertFalse ($ properties ->propertyExists ('align-content ' ));
85
85
}
86
86
87
87
public function testMergeStandardsShouldAddAContructor ()
88
88
{
89
- $ oProperties = new Properties ();
90
- $ this ->assertFalse ($ oProperties ->propertyExists ('new-content ' ));
89
+ $ properties = new Properties ();
90
+ $ this ->assertFalse ($ properties ->propertyExists ('new-content ' ));
91
91
92
- $ oProperties ->mergeStandards (['new-content ' => true ]);
93
- $ this ->assertTrue ($ oProperties ->propertyExists ('new-content ' ));
92
+ $ properties ->mergeStandards (['new-content ' => true ]);
93
+ $ this ->assertTrue ($ properties ->propertyExists ('new-content ' ));
94
94
}
95
95
96
96
public function testMergeNonStandardsShouldDisableAContructor ()
97
97
{
98
- $ oProperties = new Properties ();
99
- $ this ->assertTrue ($ oProperties ->propertyExists ('-moz-font-smoothing ' ));
98
+ $ properties = new Properties ();
99
+ $ this ->assertTrue ($ properties ->propertyExists ('-moz-font-smoothing ' ));
100
100
101
- $ oProperties ->mergeNonStandards (['font-smoothing ' => false ]);
102
- $ this ->assertFalse ($ oProperties ->propertyExists ('-moz-font-smoothing ' ));
101
+ $ properties ->mergeNonStandards (['font-smoothing ' => false ]);
102
+ $ this ->assertFalse ($ properties ->propertyExists ('-moz-font-smoothing ' ));
103
103
}
104
104
105
105
public function testMergeNonStandardsShouldAddAContructor ()
106
106
{
107
- $ oProperties = new Properties ();
108
- $ this ->assertFalse ($ oProperties ->propertyExists ('-moz-new-content ' ));
107
+ $ properties = new Properties ();
108
+ $ this ->assertFalse ($ properties ->propertyExists ('-moz-new-content ' ));
109
109
110
- $ oProperties ->mergeNonStandards (['new-content ' => true ]);
111
- $ this ->assertTrue ($ oProperties ->propertyExists ('-moz-new-content ' ));
110
+ $ properties ->mergeNonStandards (['new-content ' => true ]);
111
+ $ this ->assertTrue ($ properties ->propertyExists ('-moz-new-content ' ));
112
112
}
113
113
114
114
public function testSetOptionsAllowedIndentationChars ()
115
115
{
116
- $ oProperties = new Properties ();
117
- $ this ->assertFalse ($ oProperties ->isAllowedIndentationChar ("\t" ));
116
+ $ properties = new Properties ();
117
+ $ this ->assertFalse ($ properties ->isAllowedIndentationChar ("\t" ));
118
118
119
- $ oProperties ->setOptions ([
119
+ $ properties ->setOptions ([
120
120
'allowedIndentationChars ' => ["\t" ],
121
121
]);
122
- $ this ->assertTrue ($ oProperties ->isAllowedIndentationChar ("\t" ));
122
+ $ this ->assertTrue ($ properties ->isAllowedIndentationChar ("\t" ));
123
123
}
124
124
125
125
public function testSetOptionsConstructors ()
126
126
{
127
- $ oProperties = new Properties ();
128
- $ this ->assertFalse ($ oProperties ->propertyExists ('-new-font-smoothing ' ));
127
+ $ properties = new Properties ();
128
+ $ this ->assertFalse ($ properties ->propertyExists ('-new-font-smoothing ' ));
129
129
130
- $ oProperties ->setOptions ([
130
+ $ properties ->setOptions ([
131
131
'constructors ' => ['new ' => true ],
132
132
]);
133
- $ this ->assertTrue ($ oProperties ->propertyExists ('-new-font-smoothing ' ));
133
+ $ this ->assertTrue ($ properties ->propertyExists ('-new-font-smoothing ' ));
134
134
}
135
135
136
136
public function testSetOptionsStandards ()
137
137
{
138
- $ oProperties = new Properties ();
139
- $ this ->assertFalse ($ oProperties ->propertyExists ('new-content ' ));
138
+ $ properties = new Properties ();
139
+ $ this ->assertFalse ($ properties ->propertyExists ('new-content ' ));
140
140
141
- $ oProperties ->setOptions ([
141
+ $ properties ->setOptions ([
142
142
'standards ' => ['new-content ' => true ],
143
143
]);
144
- $ this ->assertTrue ($ oProperties ->propertyExists ('new-content ' ));
144
+ $ this ->assertTrue ($ properties ->propertyExists ('new-content ' ));
145
145
}
146
146
147
147
public function testSetOptionsNonStandards ()
148
148
{
149
- $ oProperties = new Properties ();
150
- $ this ->assertFalse ($ oProperties ->propertyExists ('-moz-new-content ' ));
149
+ $ properties = new Properties ();
150
+ $ this ->assertFalse ($ properties ->propertyExists ('-moz-new-content ' ));
151
151
152
- $ oProperties ->setOptions ([
152
+ $ properties ->setOptions ([
153
153
'nonStandards ' => ['new-content ' => true ],
154
154
]);
155
- $ this ->assertTrue ($ oProperties ->propertyExists ('-moz-new-content ' ));
155
+ $ this ->assertTrue ($ properties ->propertyExists ('-moz-new-content ' ));
156
156
}
157
157
}
0 commit comments