11<?php
22namespace Codeception ;
33
4- use \ PHPUnit_Framework_Assert as a ;
4+ use PHPUnit_Framework_Assert as a ;
55
66class Verify {
77
@@ -140,7 +140,7 @@ public function notInternalType($type)
140140
141141 public function hasAttribute ($ attribute )
142142 {
143- if ( is_string ($ attribute )) {
143+ if (is_string ($ attribute )) {
144144 a::assertClassHasAttribute ($ attribute , $ this ->actual , $ this ->description );
145145 } else {
146146 a::assertObjectHasAttribute ($ attribute , $ this ->actual , $ this ->description );
@@ -149,7 +149,7 @@ public function hasAttribute($attribute)
149149
150150 public function notHasAttribute ($ attribute )
151151 {
152- if ( is_string ($ attribute )) {
152+ if (is_string ($ attribute )) {
153153 a::assertClassNotHasAttribute ($ attribute , $ this ->actual , $ this ->description );
154154 } else {
155155 a::assertObjectNotHasAttribute ($ attribute , $ this ->actual , $ this ->description );
@@ -198,23 +198,23 @@ public function equalXMLStructure($xml, $checkAttributes = FALSE)
198198
199199 public function exists ()
200200 {
201- if ( ! $ this ->isFileExpectation ) {
201+ if (! $ this ->isFileExpectation ) {
202202 throw new \Exception ('exists() expectation should be called with expect_file() ' );
203203 }
204204 a::assertFileExists ($ this ->actual , $ this ->description );
205205 }
206206
207207 public function notExists ()
208208 {
209- if ( ! $ this ->isFileExpectation ) {
209+ if (! $ this ->isFileExpectation ) {
210210 throw new \Exception ('notExists() expectation should be called with expect_file() ' );
211211 }
212212 a::assertFileNotExists ($ this ->actual , $ this ->description );
213213 }
214214
215215 public function equalsJsonFile ($ file )
216216 {
217- if ( ! $ this ->isFileExpectation ) {
217+ if (! $ this ->isFileExpectation ) {
218218 a::assertJsonStringEqualsJsonFile ($ file , $ this ->actual , $ this ->description );
219219 } else {
220220 a::assertJsonFileEqualsJsonFile ($ file , $ this ->actual , $ this ->description );
@@ -261,21 +261,6 @@ public function notSame($expected)
261261 a::assertNotSame ($ expected , $ this ->actual , $ this ->description );
262262 }
263263
264- public function selectCount ($ selector , $ count )
265- {
266- a::assertSelectCount ($ selector , $ count , $ this ->actual , $ this ->description );
267- }
268-
269- public function selectEquals ($ selector , $ content , $ count )
270- {
271- a::assertSelectEquals ($ selector , $ content , $ count , $ this ->actual , $ this ->description );
272- }
273-
274- public function selectRegExp ($ selector , $ pattern , $ count )
275- {
276- a::assertSelectRegExp ($ selector , $ pattern , $ count , $ this ->actual , $ this ->description );
277- }
278-
279264 public function endsWith ($ suffix )
280265 {
281266 a::assertStringEndsWith ($ suffix , $ this ->actual , $ this ->description );
@@ -306,14 +291,9 @@ public function notStartsWith($prefix)
306291 a::assertStringStartsNotWith ($ prefix , $ this ->actual , $ this ->description );
307292 }
308293
309- public function tag ($ matcher )
310- {
311- a::assertTag ($ matcher , $ this ->actual , $ this ->description );
312- }
313-
314294 public function equalsXmlFile ($ file )
315295 {
316- if ( ! $ this ->isFileExpectation ) {
296+ if (! $ this ->isFileExpectation ) {
317297 a::assertXmlStringEqualsXmlFile ($ file , $ this ->actual , $ this ->description );
318298 } else {
319299 a::assertXmlFileEqualsXmlFile ($ file , $ this ->actual , $ this ->description );
@@ -324,6 +304,4 @@ public function equalsXmlString($xmlString)
324304 {
325305 a::assertXmlStringEqualsXmlString ($ xmlString , $ this ->actual , $ this ->description );
326306 }
327-
328307}
329-
0 commit comments