Skip to content

Commit 314be98

Browse files
committed
PHPCBF: Fixed several CS errors in tests.
1 parent 67b654c commit 314be98

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

generator/tests/DocPageTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
class DocPageTest extends TestCase
88
{
9-
public function testDetectFalsyFunction() {
9+
public function testDetectFalsyFunction()
10+
{
1011
$pregMatch = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/pcre/functions/preg-match.xml');
1112
$implode = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/strings/functions/implode.xml');
1213
$getCwd = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/dir/functions/getcwd.xml');

generator/tests/GeneratedFilesTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ public function testOpenSslSign()
118118
openssl_sign('foo', $signatureSafe, file_get_contents(__DIR__ . '/fixtures/id_rsa'));
119119

120120
$this->assertSame($signature, $signatureSafe);
121-
122121
}
123122

124123
public function testOpenSslEncrypt()
@@ -128,15 +127,17 @@ public function testOpenSslEncrypt()
128127
'aes-256-cbc',
129128
pack('H*', 'a2e8ccd0e7985cc0b6213a55815a1034afc252980e970ca90e5202689f9473b0'),
130129
\OPENSSL_RAW_DATA,
131-
pack('H*', '123ce954203b7caaaa9da67f59839456'));
130+
pack('H*', '123ce954203b7caaaa9da67f59839456')
131+
);
132132

133133
$resultSafe = openssl_encrypt(
134134
'test',
135135
'aes-256-cbc',
136136
pack('H*', 'a2e8ccd0e7985cc0b6213a55815a1034afc252980e970ca90e5202689f9473b0'),
137137
\OPENSSL_RAW_DATA,
138-
pack('H*', '123ce954203b7caaaa9da67f59839456'));
138+
pack('H*', '123ce954203b7caaaa9da67f59839456')
139+
);
139140

140141
$this->assertSame($result, $resultSafe);
141142
}
142-
}
143+
}

generator/tests/MethodTest.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,26 @@
77

88
class MethodTest extends TestCase
99
{
10-
public function testGetFunctionName() {
10+
public function testGetFunctionName()
11+
{
1112
$docPage = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/pcre/functions/preg-match.xml');
1213
$xmlObject = $docPage->getMethodSynopsis();
1314
$method = new Method($xmlObject[0], $docPage->loadAndResolveFile(), $docPage->getModule(), new PhpStanFunctionMapReader());
1415
$name = $method->getFunctionName();
1516
$this->assertEquals('preg_match', $name);
1617
}
1718

18-
public function testGetFunctionType() {
19+
public function testGetFunctionType()
20+
{
1921
$docPage = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/pcre/functions/preg-match.xml');
2022
$xmlObject = $docPage->getMethodSynopsis();
2123
$method = new Method($xmlObject[0], $docPage->loadAndResolveFile(), $docPage->getModule(), new PhpStanFunctionMapReader());
2224
$type = $method->getReturnType();
2325
$this->assertEquals('int', $type);
2426
}
2527

26-
public function testGetFunctionParam() {
28+
public function testGetFunctionParam()
29+
{
2730
$docPage = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/pcre/functions/preg-match.xml');
2831
$xmlObject = $docPage->getMethodSynopsis();
2932
$method = new Method($xmlObject[0], $docPage->loadAndResolveFile(), $docPage->getModule(), new PhpStanFunctionMapReader());
@@ -32,13 +35,13 @@ public function testGetFunctionParam() {
3235
$this->assertEquals('pattern', $params[0]->getParameter());
3336
}
3437

35-
public function testGetInitializer() {
38+
public function testGetInitializer()
39+
{
3640
$docPage = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/apc/functions/apc-cache-info.xml');
3741
$xmlObject = $docPage->getMethodSynopsis();
3842
$method = new Method($xmlObject[0], $docPage->loadAndResolveFile(), $docPage->getModule(), new PhpStanFunctionMapReader());
3943

4044
$params = $method->getParams();
4145
$this->assertEquals('', $params[0]->getDefaultValue());
4246
}
43-
4447
}

0 commit comments

Comments
 (0)