List of steps to reproduce (step by step, including full links if applicable):
mkdir /tmp/test cd /tmp/test cat <<'EOF' > test.php <?php class FooTest { function test() { // $value is true on success, an error message on failure. Testing for generic failure. $this->assertNotEquals( true, $value ); $this->assertNotSame( true, $value ); // $value is an object on success, false on failure. Testing for generic success. $this->assertNotEquals( false, $value ); $this->assertNotSame( false, $value ); } } EOF composer require mediawiki/mediawiki-codesniffer vendor/bin/phpcbf --standard=vendor/mediawiki/mediawiki-codesniffer/MediaWiki/ruleset.xml test.php
What happens?:
test.php contains
<?php class FooTest { function test() { // $value is true on success, an error message on failure. Testing for generic failure. $this->assertFalse( $value ); $this->assertFalse( $value ); // $value is an object on success, false on failure. Testing for generic success. $this->assertTrue( $value ); $this->assertTrue( $value ); } }
What should have happened instead?:
test.php contains
<?php class FooTest { function test() { // $value is true on success, an error message on failure. Testing for generic failure. $this->assertNotTrue( $value ); $this->assertNotTrue( $value ); // $value is an object on success, false on failure. Testing for generic success. $this->assertNotFalse( $value ); $this->assertNotFalse( $value ); } }
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.: n/a