Skip to content

Commit

Permalink
add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 16, 2024
1 parent 4d971ad commit bc4c592
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Fixtures/Integration/set/@PhpCsFixer.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--TEST--
Integration of @PhpCsFixer.
--RULESET--
{"@PhpCsFixer": true}
13 changes: 13 additions & 0 deletions tests/Fixtures/Integration/set/@PhpCsFixer.test-in.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?

namespace Vendor\Package;

class Foo{

public function testStringImplicitBackslashes($a = 'a\\b'): string
{
return 'a\\b'
. $a
. "\n\\a\b";
}
}
15 changes: 15 additions & 0 deletions tests/Fixtures/Integration/set/@PhpCsFixer.test-out.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace Vendor\Package;

class Foo
{
public function testStringImplicitBackslashes($a = 'a\b'): string
{
return 'a\b'
. $a
. "\n\\a\\b";
}
}

0 comments on commit bc4c592

Please sign in to comment.