Skip to content

Commit

Permalink
Merge pull request #1197 from mpoiriert/patch-1
Browse files Browse the repository at this point in the history
Fix deprecated assertFileNotExist
  • Loading branch information
goetas authored May 12, 2020
2 parents 8727285 + 34c3e78 commit 5eb72f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"symfony/form": "^3.0|^4.0|^5.0",
"symfony/filesystem": "^3.0|^4.0|^5.0",
"symfony/expression-language": "^3.0|^4.0|^5.0",
"phpunit/phpunit": "^7.5||^8.0||^9.0",
"phpunit/phpunit": "^8.0||^9.0",
"doctrine/coding-standard": "^5.0"
},
"conflict": {
Expand Down
5 changes: 4 additions & 1 deletion tests/SerializerBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
use JMS\Serializer\Tests\Fixtures\PersonSecretWithVariables;
use JMS\Serializer\Type\ParserInterface;
use JMS\Serializer\Visitor\Factory\JsonSerializationVisitorFactory;
use PHPUnit\Framework\Constraint\FileExists;
use PHPUnit\Framework\Constraint\LogicalNot;
use PHPUnit\Framework\TestCase;
use Symfony\Component\ExpressionLanguage\ExpressionFunction;
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
Expand Down Expand Up @@ -41,7 +43,8 @@ public function testBuildWithoutAnythingElse()

public function testWithCache()
{
self::assertFileNotExists($this->tmpDir);
// @todo change to static::assertFileNotExists when support for PHPUnit 8 and PHP 7.2 is dropped
static::assertThat($this->tmpDir, new LogicalNot(new FileExists()));

self::assertSame($this->builder, $this->builder->setCacheDir($this->tmpDir));
$serializer = $this->builder->build();
Expand Down

0 comments on commit 5eb72f4

Please sign in to comment.