Skip to content

Commit 7bc7f79

Browse files
dunglasNightbr
authored andcommitted
Update PHP CS Fixer
1 parent 6f0770e commit 7bc7f79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ before_install:
3030
- phpenv config-rm xdebug.ini || echo "xdebug not available"
3131
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
3232
- npm install -g swagger-cli
33-
- if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.7.1/php-cs-fixer.phar; fi
33+
- if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.8.2/php-cs-fixer.phar; fi
3434
- if [[ $lint = 1 ]]; then composer global require --dev 'phpstan/phpstan:^0.8'; fi
3535
- export PATH="$PATH:$HOME/.composer/vendor/bin"
3636

tests/Swagger/Serializer/DocumentationNormalizerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,9 +1207,9 @@ public function testSupports()
12071207

12081208
$documentation = new Documentation(new ResourceNameCollection([Dummy::class]), 'Test API', 'This is a test API.', '1.2.3', ['jsonld' => ['application/ld+json']]);
12091209

1210-
$this->assertEquals(true, $normalizer->supportsNormalization($documentation, 'json'));
1211-
$this->assertEquals(false, $normalizer->supportsNormalization($documentation));
1212-
$this->assertEquals(false, $normalizer->supportsNormalization(new Dummy(), 'json'));
1210+
$this->assertTrue($normalizer->supportsNormalization($documentation, 'json'));
1211+
$this->assertFalse($normalizer->supportsNormalization($documentation));
1212+
$this->assertFalse($normalizer->supportsNormalization(new Dummy(), 'json'));
12131213
}
12141214

12151215
public function testNoOperations()

0 commit comments

Comments
 (0)