Skip to content

Commit 80b5656

Browse files
committed
Tests/Ruleset/fixtures: move existing fixtures to subdirectory
For some new tests, some test fixtures outside a standard directory structure and/or in a seperate standard directory structure are needed. This commit moves the pre-existing sniff test fixtures to a subdirectory to allow for the upcoming additional test fixtures. Includes updating the standard/ruleset to have a namespace prefix ("Fixtures"), so that aspect of things can now also be tested.
1 parent 9f81294 commit 80b5656

31 files changed

+84
-84
lines changed

tests/Core/Ruleset/ExplainTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,17 @@ public function testExplainWithDeprecatedSniffs()
187187
$expected = PHP_EOL;
188188
$expected .= 'The ShowSniffDeprecationsTest standard contains 9 sniffs'.PHP_EOL.PHP_EOL;
189189

190-
$expected .= 'Fixtures (9 sniffs)'.PHP_EOL;
191-
$expected .= '-------------------'.PHP_EOL;
192-
$expected .= ' Fixtures.Deprecated.WithLongReplacement *'.PHP_EOL;
193-
$expected .= ' Fixtures.Deprecated.WithoutReplacement *'.PHP_EOL;
194-
$expected .= ' Fixtures.Deprecated.WithReplacement *'.PHP_EOL;
195-
$expected .= ' Fixtures.Deprecated.WithReplacementContainingLinuxNewlines *'.PHP_EOL;
196-
$expected .= ' Fixtures.Deprecated.WithReplacementContainingNewlines *'.PHP_EOL;
197-
$expected .= ' Fixtures.SetProperty.AllowedAsDeclared'.PHP_EOL;
198-
$expected .= ' Fixtures.SetProperty.AllowedViaMagicMethod'.PHP_EOL;
199-
$expected .= ' Fixtures.SetProperty.AllowedViaStdClass'.PHP_EOL;
200-
$expected .= ' Fixtures.SetProperty.NotAllowedViaAttribute'.PHP_EOL.PHP_EOL;
190+
$expected .= 'TestStandard (9 sniffs)'.PHP_EOL;
191+
$expected .= '-----------------------'.PHP_EOL;
192+
$expected .= ' TestStandard.Deprecated.WithLongReplacement *'.PHP_EOL;
193+
$expected .= ' TestStandard.Deprecated.WithoutReplacement *'.PHP_EOL;
194+
$expected .= ' TestStandard.Deprecated.WithReplacement *'.PHP_EOL;
195+
$expected .= ' TestStandard.Deprecated.WithReplacementContainingLinuxNewlines *'.PHP_EOL;
196+
$expected .= ' TestStandard.Deprecated.WithReplacementContainingNewlines *'.PHP_EOL;
197+
$expected .= ' TestStandard.SetProperty.AllowedAsDeclared'.PHP_EOL;
198+
$expected .= ' TestStandard.SetProperty.AllowedViaMagicMethod'.PHP_EOL;
199+
$expected .= ' TestStandard.SetProperty.AllowedViaStdClass'.PHP_EOL;
200+
$expected .= ' TestStandard.SetProperty.NotAllowedViaAttribute'.PHP_EOL.PHP_EOL;
201201

202202
$expected .= '* Sniffs marked with an asterix are deprecated.'.PHP_EOL;
203203

tests/Core/Ruleset/Fixtures/Sniffs/Deprecated/WithLongReplacementSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithLongReplacementSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
66
*/
77

8-
namespace Fixtures\Sniffs\Deprecated;
8+
namespace Fixtures\TestStandard\Sniffs\Deprecated;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;

tests/Core/Ruleset/Fixtures/Sniffs/Deprecated/WithReplacementContainingLinuxNewlinesSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingLinuxNewlinesSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
66
*/
77

8-
namespace Fixtures\Sniffs\Deprecated;
8+
namespace Fixtures\TestStandard\Sniffs\Deprecated;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;

tests/Core/Ruleset/Fixtures/Sniffs/Deprecated/WithReplacementContainingNewlinesSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingNewlinesSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
66
*/
77

8-
namespace Fixtures\Sniffs\Deprecated;
8+
namespace Fixtures\TestStandard\Sniffs\Deprecated;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;

tests/Core/Ruleset/Fixtures/Sniffs/Deprecated/WithReplacementSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
66
*/
77

8-
namespace Fixtures\Sniffs\Deprecated;
8+
namespace Fixtures\TestStandard\Sniffs\Deprecated;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;

tests/Core/Ruleset/Fixtures/Sniffs/Deprecated/WithoutReplacementSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithoutReplacementSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
66
*/
77

8-
namespace Fixtures\Sniffs\Deprecated;
8+
namespace Fixtures\TestStandard\Sniffs\Deprecated;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;

tests/Core/Ruleset/Fixtures/Sniffs/DeprecatedInvalid/EmptyDeprecationVersionSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyDeprecationVersionSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
66
*/
77

8-
namespace Fixtures\Sniffs\DeprecatedInvalid;
8+
namespace Fixtures\TestStandard\Sniffs\DeprecatedInvalid;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;

tests/Core/Ruleset/Fixtures/Sniffs/DeprecatedInvalid/EmptyRemovalVersionSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyRemovalVersionSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
66
*/
77

8-
namespace Fixtures\Sniffs\DeprecatedInvalid;
8+
namespace Fixtures\TestStandard\Sniffs\DeprecatedInvalid;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;

tests/Core/Ruleset/Fixtures/Sniffs/DeprecatedInvalid/InvalidDeprecationMessageSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationMessageSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
66
*/
77

8-
namespace Fixtures\Sniffs\DeprecatedInvalid;
8+
namespace Fixtures\TestStandard\Sniffs\DeprecatedInvalid;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;

tests/Core/Ruleset/Fixtures/Sniffs/DeprecatedInvalid/InvalidDeprecationVersionSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationVersionSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
66
*/
77

8-
namespace Fixtures\Sniffs\DeprecatedInvalid;
8+
namespace Fixtures\TestStandard\Sniffs\DeprecatedInvalid;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;

tests/Core/Ruleset/Fixtures/Sniffs/DeprecatedInvalid/InvalidRemovalVersionSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidRemovalVersionSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
66
*/
77

8-
namespace Fixtures\Sniffs\DeprecatedInvalid;
8+
namespace Fixtures\TestStandard\Sniffs\DeprecatedInvalid;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;

tests/Core/Ruleset/Fixtures/Sniffs/SetProperty/AllowedAsDeclaredSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/AllowedAsDeclaredSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SetSniffPropertyTest
66
*/
77

8-
namespace Fixtures\Sniffs\SetProperty;
8+
namespace Fixtures\TestStandard\Sniffs\SetProperty;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\Sniff;

tests/Core/Ruleset/Fixtures/Sniffs/SetProperty/AllowedViaMagicMethodSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/AllowedViaMagicMethodSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SetSniffPropertyTest
66
*/
77

8-
namespace Fixtures\Sniffs\SetProperty;
8+
namespace Fixtures\TestStandard\Sniffs\SetProperty;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\Sniff;

tests/Core/Ruleset/Fixtures/Sniffs/SetProperty/AllowedViaStdClassSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/AllowedViaStdClassSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SetSniffPropertyTest
66
*/
77

8-
namespace Fixtures\Sniffs\SetProperty;
8+
namespace Fixtures\TestStandard\Sniffs\SetProperty;
99

1010
use PHP_CodeSniffer\Files\File;
1111
use PHP_CodeSniffer\Sniffs\Sniff;

tests/Core/Ruleset/Fixtures/Sniffs/SetProperty/NotAllowedViaAttributeSniff.php renamed to tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/NotAllowedViaAttributeSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SetSniffPropertyTest
66
*/
77

8-
namespace Fixtures\Sniffs\SetProperty;
8+
namespace Fixtures\TestStandard\Sniffs\SetProperty;
99

1010
use AllowDynamicProperties;
1111
use PHP_CodeSniffer\Files\File;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0"?>
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="TestStandard" namespace="Fixtures\TestStandard" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
3+
4+
</ruleset>

tests/Core/Ruleset/Fixtures/ruleset.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/Core/Ruleset/SetPropertyAllowedAsDeclaredTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="SetSniffPropertyTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<rule ref="./tests/Core/Ruleset/Fixtures/Sniffs/SetProperty/AllowedAsDeclaredSniff.php">
4+
<rule ref="./tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/AllowedAsDeclaredSniff.php">
55
<properties>
66
<property name="arbitrarystring" value="arbitraryvalue"/>
77
<property name="arbitraryarray" type="array">

tests/Core/Ruleset/SetPropertyAllowedViaMagicMethodTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="SetSniffPropertyTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<rule ref="./tests/Core/Ruleset/Fixtures/Sniffs/SetProperty/AllowedViaMagicMethodSniff.php">
4+
<rule ref="./tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/AllowedViaMagicMethodSniff.php">
55
<properties>
66
<property name="arbitrarystring" value="arbitraryvalue"/>
77
<property name="arbitraryarray" type="array">

tests/Core/Ruleset/SetPropertyAllowedViaStdClassTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="SetSniffPropertyTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<rule ref="./tests/Core/Ruleset/Fixtures/Sniffs/SetProperty/AllowedViaStdClassSniff.php">
4+
<rule ref="./tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/AllowedViaStdClassSniff.php">
55
<properties>
66
<property name="arbitrarystring" value="arbitraryvalue"/>
77
<property name="arbitraryarray" type="array">

tests/Core/Ruleset/SetPropertyNotAllowedViaAttributeTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="SetSniffPropertyTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<rule ref="./tests/Core/Ruleset/Fixtures/Sniffs/SetProperty/NotAllowedViaAttributeSniff.php">
4+
<rule ref="./tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/NotAllowedViaAttributeSniff.php">
55
<properties>
66
<property name="arbitrarystring" value="arbitraryvalue"/>
77
</properties>

tests/Core/Ruleset/SetSniffPropertyTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ final class SetSniffPropertyTest extends TestCase
3434
*/
3535
public function testSniffPropertiesGetSetWhenAllowed($name)
3636
{
37-
$sniffCode = "Fixtures.SetProperty.{$name}";
38-
$sniffClass = 'Fixtures\Sniffs\SetProperty\\'.$name.'Sniff';
37+
$sniffCode = "TestStandard.SetProperty.{$name}";
38+
$sniffClass = 'Fixtures\TestStandard\Sniffs\SetProperty\\'.$name.'Sniff';
3939
$properties = [
4040
'arbitrarystring' => 'arbitraryvalue',
4141
'arbitraryarray' => [
@@ -163,7 +163,7 @@ public function testSetPropertyThrowsErrorOnInvalidProperty()
163163
public function testSetPropertyThrowsErrorWhenPropertyOnlyAllowedViaAttribute()
164164
{
165165
$exceptionClass = 'PHP_CodeSniffer\Exceptions\RuntimeException';
166-
$exceptionMsg = 'Ruleset invalid. Property "arbitrarystring" does not exist on sniff Fixtures.SetProperty.NotAllowedViaAttribute';
166+
$exceptionMsg = 'Ruleset invalid. Property "arbitrarystring" does not exist on sniff TestStandard.SetProperty.NotAllowedViaAttribute';
167167
if (method_exists($this, 'expectException') === true) {
168168
$this->expectException($exceptionClass);
169169
$this->expectExceptionMessage($exceptionMsg);
@@ -225,8 +225,8 @@ public function testSetPropertyDoesNotThrowErrorOnInvalidPropertyWhenSetForCateg
225225
public function testDirectCallWithNewArrayFormatSetsProperty()
226226
{
227227
$name = 'AllowedAsDeclared';
228-
$sniffCode = "Fixtures.SetProperty.{$name}";
229-
$sniffClass = 'Fixtures\Sniffs\SetProperty\\'.$name.'Sniff';
228+
$sniffCode = "TestStandard.SetProperty.{$name}";
229+
$sniffClass = 'Fixtures\TestStandard\Sniffs\SetProperty\\'.$name.'Sniff';
230230

231231
// Set up the ruleset.
232232
$standard = __DIR__."/SetProperty{$name}Test.xml";
@@ -276,8 +276,8 @@ public function testDirectCallWithNewArrayFormatSetsProperty()
276276
public function testDirectCallWithOldArrayFormatSetsProperty($propertyValue)
277277
{
278278
$name = 'AllowedAsDeclared';
279-
$sniffCode = "Fixtures.SetProperty.{$name}";
280-
$sniffClass = 'Fixtures\Sniffs\SetProperty\\'.$name.'Sniff';
279+
$sniffCode = "TestStandard.SetProperty.{$name}";
280+
$sniffClass = 'Fixtures\TestStandard\Sniffs\SetProperty\\'.$name.'Sniff';
281281

282282
// Set up the ruleset.
283283
$standard = __DIR__."/SetProperty{$name}Test.xml";
@@ -383,7 +383,7 @@ public function testDirectCallWithOldArrayFormatThrowsDeprecationNotice()
383383
}
384384

385385
$name = 'AllowedAsDeclared';
386-
$sniffClass = 'Fixtures\Sniffs\SetProperty\\'.$name.'Sniff';
386+
$sniffClass = 'Fixtures\TestStandard\Sniffs\SetProperty\\'.$name.'Sniff';
387387

388388
// Set up the ruleset.
389389
$standard = __DIR__."/SetProperty{$name}Test.xml";
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ShowSniffDeprecationsTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/"/>
4+
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/TestStandard/"/>
55

6-
<rule ref="Fixtures.DeprecatedInvalid.EmptyDeprecationVersion"/>
6+
<rule ref="TestStandard.DeprecatedInvalid.EmptyDeprecationVersion"/>
77

88
</ruleset>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ShowSniffDeprecationsTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/"/>
4+
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/TestStandard/"/>
55

6-
<rule ref="Fixtures.DeprecatedInvalid.EmptyRemovalVersion"/>
6+
<rule ref="TestStandard.DeprecatedInvalid.EmptyRemovalVersion"/>
77

88
</ruleset>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ShowSniffDeprecationsTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/"/>
4+
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/TestStandard/"/>
55

6-
<rule ref="Fixtures.DeprecatedInvalid.InvalidDeprecationMessage"/>
6+
<rule ref="TestStandard.DeprecatedInvalid.InvalidDeprecationMessage"/>
77

88
</ruleset>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ShowSniffDeprecationsTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/"/>
4+
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/TestStandard/"/>
55

6-
<rule ref="Fixtures.DeprecatedInvalid.InvalidDeprecationVersion"/>
6+
<rule ref="TestStandard.DeprecatedInvalid.InvalidDeprecationVersion"/>
77

88
</ruleset>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ShowSniffDeprecationsTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/"/>
4+
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/TestStandard/"/>
55

6-
<rule ref="Fixtures.DeprecatedInvalid.InvalidRemovalVersion"/>
6+
<rule ref="TestStandard.DeprecatedInvalid.InvalidRemovalVersion"/>
77

88
</ruleset>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ShowSniffDeprecationsTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/"/>
4+
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/TestStandard/"/>
55

66
<!-- This list is non-alphabetic on purpose. The display order is what is being tested. -->
7-
<rule ref="Fixtures.Deprecated.WithReplacement"/>
8-
<rule ref="Fixtures.Deprecated.WithoutReplacement"/>
7+
<rule ref="TestStandard.Deprecated.WithReplacement"/>
8+
<rule ref="TestStandard.Deprecated.WithoutReplacement"/>
99

1010
</ruleset>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ShowSniffDeprecationsTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33

4-
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/"/>
4+
<config name="installed_paths" value="./tests/Core/Ruleset/Fixtures/TestStandard/"/>
55

6-
<rule ref="Fixtures.Deprecated.WithLongReplacement"/>
6+
<rule ref="TestStandard.Deprecated.WithLongReplacement"/>
77

88
</ruleset>

0 commit comments

Comments
 (0)