Skip to content

Commit 75a8868

Browse files
author
Vincent Langlet
committed
🚨 Improve tests
1 parent 2b6e5f1 commit 75a8868

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

Symfony3Custom/Tests/Commenting/FunctionCommentUnitTest.inc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,20 @@ function functionTestInherit($test)
7373
return 42;
7474
}
7575

76-
function testToIgnore($test)
76+
function testToNotIgnore1($test)
7777
{
7878
return 42;
7979
}
8080

8181
/**
8282
* @param string $test should not be ignore
8383
*/
84-
function testToNotIgnore($test)
84+
function testToNotIgnore2($test)
8585
{
8686
return 42;
8787
}
88+
89+
function testToIgnore()
90+
{
91+
$test = 2;
92+
}

Symfony3Custom/Tests/Commenting/FunctionCommentUnitTest.inc.fixed

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,20 @@ function functionTestInherit($test)
7373
return 42;
7474
}
7575

76-
function testToIgnore($test)
76+
function testToNotIgnore1($test)
7777
{
7878
return 42;
7979
}
8080

8181
/**
8282
* @param string $test should not be ignore
8383
*/
84-
function testToNotIgnore($test)
84+
function testToNotIgnore2($test)
8585
{
8686
return 42;
8787
}
88+
89+
function testToIgnore()
90+
{
91+
$test = 2;
92+
}

Symfony3Custom/Tests/WhiteSpace/UnaryOperatorSpacingUnitTest.inc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?php
22

3-
$a !== 1;
4-
$a ! == 1;
5-
63
$a = !$b;
74
$a = ! $b;
85

Symfony3Custom/Tests/WhiteSpace/UnaryOperatorSpacingUnitTest.inc.fixed

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?php
22

3-
$a !== 1;
4-
$a !== 1;
5-
63
$a = !$b;
74
$a = !$b;
85

Symfony3Custom/Tests/WhiteSpace/UnaryOperatorSpacingUnitTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ public function getErrorList()
2121
return array(
2222
4 => 1,
2323
7 => 1,
24-
10 => 1,
24+
9 => 1,
2525
12 => 1,
26-
15 => 1,
26+
14 => 1,
2727
17 => 1,
28-
20 => 1,
29-
21 => 1,
28+
18 => 1,
3029
);
3130
}
3231

0 commit comments

Comments
 (0)