Skip to content

Commit cccce06

Browse files
authored
Maintenance (CodeStyle fix, Release Script updates, ...) (#3369)
* Maintanance * fixed codestyle * updated codeception/base release script * updated changelog * version bump * ignoring "package" and "tests" dir for codestyle fixes * updatd docs * removed docs from codestylefix * added no-dev flag for yii templates
1 parent b728216 commit cccce06

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

tests/unit/Codeception/Module/PhpBrowserRestTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public function setUp()
2626
$this->module->_initialize();
2727
$this->module->_before(Stub::makeEmpty('\Codeception\Test\Cest'));
2828
$this->phpBrowser->_before(Stub::makeEmpty('\Codeception\Test\Cest'));
29-
3029
}
3130

3231
private function setStubResponse($response)
@@ -161,7 +160,8 @@ public function testGetApplicationJsonNotIncludesJsonAsContent()
161160
* @Issue https://github.com/Codeception/Codeception/issues/2075
162161
* Client is undefined for the second test
163162
*/
164-
public function testTwoTests() {
163+
public function testTwoTests()
164+
{
165165
$cest1 = Stub::makeEmpty('\Codeception\Test\Cest');
166166
$cest2 = Stub::makeEmpty('\Codeception\Test\Cest');
167167

tests/unit/Codeception/Module/TestsForWeb.php

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,32 +107,40 @@ public function testDontSeeLink()
107107

108108
public function testSeeLinkFailsIfTextDoesNotMatch()
109109
{
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+
);
112114
$this->module->amOnPage('/external_url');
113115
$this->module->seeLink('Codeception');
114116
}
115117

116118
public function testSeeLinkFailsIfHrefDoesNotMatch()
117119
{
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+
);
120124
$this->module->amOnPage('/external_url');
121125
$this->module->seeLink('Next', '/fsdfsdf/');
122126
}
123127

124128
public function testDontSeeLinkFailsIfTextMatches()
125129
{
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+
);
128134
$this->module->amOnPage('/external_url');
129135
$this->module->dontSeeLink('Next');
130136
}
131137

132138
public function testDontSeeLinkFailsIfTextAndUrlMatches()
133139
{
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+
);
136144
$this->module->amOnPage('/external_url');
137145
$this->module->dontSeeLink('Next', 'http://codeception.com/');
138146
}
@@ -1480,5 +1488,4 @@ public function testSelectOptionTextSelector()
14801488
$this->module->selectOption('age', ['text' => '21']);
14811489
$this->module->seeOptionIsSelected('age', '21');
14821490
}
1483-
14841491
}

0 commit comments

Comments
 (0)