@@ -107,32 +107,40 @@ public function testDontSeeLink()
107
107
108
108
public function testSeeLinkFailsIfTextDoesNotMatch ()
109
109
{
110
- $ this ->setExpectedException ('PHPUnit_Framework_AssertionFailedError ' ,
111
- "No links containing text 'Codeception' were found in page /external_url " );
110
+ $ this ->setExpectedException (
111
+ 'PHPUnit_Framework_AssertionFailedError ' ,
112
+ "No links containing text 'Codeception' were found in page /external_url "
113
+ );
112
114
$ this ->module ->amOnPage ('/external_url ' );
113
115
$ this ->module ->seeLink ('Codeception ' );
114
116
}
115
117
116
118
public function testSeeLinkFailsIfHrefDoesNotMatch ()
117
119
{
118
- $ this ->setExpectedException ('PHPUnit_Framework_AssertionFailedError ' ,
119
- "No links containing text 'Next' and URL '/fsdfsdf/' were found in page /external_url " );
120
+ $ this ->setExpectedException (
121
+ 'PHPUnit_Framework_AssertionFailedError ' ,
122
+ "No links containing text 'Next' and URL '/fsdfsdf/' were found in page /external_url "
123
+ );
120
124
$ this ->module ->amOnPage ('/external_url ' );
121
125
$ this ->module ->seeLink ('Next ' , '/fsdfsdf/ ' );
122
126
}
123
127
124
128
public function testDontSeeLinkFailsIfTextMatches ()
125
129
{
126
- $ this ->setExpectedException ('PHPUnit_Framework_AssertionFailedError ' ,
127
- "Link containing text 'Next' was found in page /external_url " );
130
+ $ this ->setExpectedException (
131
+ 'PHPUnit_Framework_AssertionFailedError ' ,
132
+ "Link containing text 'Next' was found in page /external_url "
133
+ );
128
134
$ this ->module ->amOnPage ('/external_url ' );
129
135
$ this ->module ->dontSeeLink ('Next ' );
130
136
}
131
137
132
138
public function testDontSeeLinkFailsIfTextAndUrlMatches ()
133
139
{
134
- $ this ->setExpectedException ('PHPUnit_Framework_AssertionFailedError ' ,
135
- "Link containing text 'Next' and URL 'http://codeception.com/' was found in page /external_url " );
140
+ $ this ->setExpectedException (
141
+ 'PHPUnit_Framework_AssertionFailedError ' ,
142
+ "Link containing text 'Next' and URL 'http://codeception.com/' was found in page /external_url "
143
+ );
136
144
$ this ->module ->amOnPage ('/external_url ' );
137
145
$ this ->module ->dontSeeLink ('Next ' , 'http://codeception.com/ ' );
138
146
}
@@ -1480,5 +1488,4 @@ public function testSelectOptionTextSelector()
1480
1488
$ this ->module ->selectOption ('age ' , ['text ' => '21 ' ]);
1481
1489
$ this ->module ->seeOptionIsSelected ('age ' , '21 ' );
1482
1490
}
1483
-
1484
1491
}
0 commit comments