Skip to content

Commit

Permalink
Adjust tests to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
rdohms committed Oct 13, 2021
1 parent 2501df7 commit 550f444
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 12 deletions.
16 changes: 8 additions & 8 deletions tests/expected_report.txt
Expand Up @@ -3,16 +3,16 @@ PHP CODE SNIFFER REPORT SUMMARY
----------------------------------------------------------------------
FILE ERRORS WARNINGS
----------------------------------------------------------------------
tests/input/concatenation_spacing.php 56 0
tests/input/example-class.php 36 0
tests/input/not_spacing.php 8 0
tests/input/return_type_on_closures.php 28 0
tests/input/return_type_on_methods.php 14 0
tests/input/test-case.php 8 0
tests/input/concatenation_spacing.php 55 0
tests/input/example-class.php 35 0
tests/input/not_spacing.php 7 0
tests/input/return_type_on_closures.php 27 0
tests/input/return_type_on_methods.php 13 0
tests/input/test-case.php 7 0
----------------------------------------------------------------------
A TOTAL OF 150 ERRORS AND 0 WARNINGS WERE FOUND IN 6 FILES
A TOTAL OF 144 ERRORS AND 0 WARNINGS WERE FOUND IN 6 FILES
----------------------------------------------------------------------
PHPCBF CAN FIX 139 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
PHPCBF CAN FIX 133 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


1 change: 1 addition & 0 deletions tests/fixed/concatenation_spacing.php
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

$string = 'Standards' . 'are awesome';
Expand Down
6 changes: 2 additions & 4 deletions tests/fixed/example-class.php
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

namespace Example;
Expand Down Expand Up @@ -33,10 +34,7 @@ class Example implements IteratorAggregate

private bool $baz;

/**
* @var ControlStructureSniff|int|string|null
*/
private $baxBax;
private ControlStructureSniff|int|string|null $baxBax = null;

public function __construct(?int $foo = null, array $bar = [], bool $baz = false, $baxBax = 'unused')
{
Expand Down
1 change: 1 addition & 0 deletions tests/fixed/not_spacing.php
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

$test = 1;
Expand Down
1 change: 1 addition & 0 deletions tests/fixed/return_type_on_closures.php
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

static function (): void {
Expand Down
1 change: 1 addition & 0 deletions tests/fixed/return_type_on_methods.php
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

namespace Blah;
Expand Down
1 change: 1 addition & 0 deletions tests/fixed/test-case.php
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

namespace Fancy;
Expand Down

0 comments on commit 550f444

Please sign in to comment.