@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | * Note: characters are stripped from the content; make sure that your assertions take this into account. |
126 | 126 | * |
127 | 127 | * @param string $selector A basic CSS selector, e.g. 'li.jobs h3' |
128 | - * @param array|string $expectedMatches The content of at least one of the matched tags |
|
128 | + * @param integer $index |
|
129 | 129 | * @throws PHPUnit_Framework_AssertionFailedError |
130 | 130 | * @return boolean |
131 | 131 | */ |
@@ -155,7 +155,8 @@ discard block |
||
155 | 155 | * Note: characters are stripped from the content; make sure that your assertions take this into account. |
156 | 156 | * |
157 | 157 | * @param string $selector A basic CSS selector, e.g. 'li.jobs h3' |
158 | - * @param array|string $expectedMatches The content of at least one of the matched tags |
|
158 | + * @param integer $index |
|
159 | + * @param string $expectedClause |
|
159 | 160 | * @throws PHPUnit_Framework_AssertionFailedError |
160 | 161 | * @return boolean |
161 | 162 | */ |
@@ -183,6 +184,12 @@ discard block |
||
183 | 184 | /* |
184 | 185 | Check all the nodes matching the selector for attribute name = expected value |
185 | 186 | */ |
187 | + |
|
188 | + /** |
|
189 | + * @param string $selector |
|
190 | + * @param string $attributeName |
|
191 | + * @param string $expectedValue |
|
192 | + */ |
|
186 | 193 | public function assertAttributeHasExactValue($selector, $attributeName, $expectedValue) { |
187 | 194 | $items = $this->cssParser()->getBySelector($selector); |
188 | 195 | foreach ($items as $item) { |
@@ -191,6 +198,9 @@ discard block |
||
191 | 198 | } |
192 | 199 | |
193 | 200 | |
201 | + /** |
|
202 | + * @param string $selector |
|
203 | + */ |
|
194 | 204 | public function assertAttributesHaveExactValues($selector, $expectedValues) { |
195 | 205 | $attributeNames = array_keys($expectedValues); |
196 | 206 | $items = $this->cssParser()->getBySelector($selector); |
@@ -204,6 +214,10 @@ discard block |
||
204 | 214 | } |
205 | 215 | |
206 | 216 | |
217 | + /** |
|
218 | + * @param string $selector |
|
219 | + * @param integer $expectedAmount |
|
220 | + */ |
|
207 | 221 | public function assertNumberOfNodes($selector, $expectedAmount) { |
208 | 222 | $items = $this->cssParser()->getBySelector($selector); |
209 | 223 | foreach ($items as $item) { |