Skip to content

Commit 2b17756

Browse files
authored
Merge pull request #1518 from dunglas/update-php-cs
Update PHP CS Fixer
2 parents e69d857 + 3175b87 commit 2b17756

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
@@ -20,7 +20,7 @@ before_install:
2020
- phpenv config-rm xdebug.ini || echo "xdebug not available"
2121
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
2222
- npm install -g swagger-cli
23-
- if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.7.1/php-cs-fixer.phar; fi
23+
- if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.8.2/php-cs-fixer.phar; fi
2424
- if [[ $lint = 1 ]]; then composer global require --dev 'phpstan/phpstan:^0.8'; fi
2525
- export PATH="$PATH:$HOME/.composer/vendor/bin"
2626

tests/Swagger/Serializer/DocumentationNormalizerTest.php

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

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

1049-
$this->assertEquals(true, $normalizer->supportsNormalization($documentation, 'json'));
1050-
$this->assertEquals(false, $normalizer->supportsNormalization($documentation));
1051-
$this->assertEquals(false, $normalizer->supportsNormalization(new Dummy(), 'json'));
1049+
$this->assertTrue($normalizer->supportsNormalization($documentation, 'json'));
1050+
$this->assertFalse($normalizer->supportsNormalization($documentation));
1051+
$this->assertFalse($normalizer->supportsNormalization(new Dummy(), 'json'));
10521052
}
10531053

10541054
public function testNoOperations()

0 commit comments

Comments
 (0)