Skip to content

Commit

Permalink
Update to PHPUnit 7 (nelmio#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel authored and theofidry committed Mar 30, 2018
1 parent 396ce4a commit 0d8fe50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"bamarni/composer-bin-plugin": "^1.1.0",
"php-mock/php-mock": "^2.0",
"phpspec/prophecy": "^1.6",
"phpunit/phpunit": "^6.0",
"symfony/phpunit-bridge": "^3.4 || ^4.0",
"phpunit/phpunit": "^7.0",
"symfony/phpunit-bridge": "^3.4.5 || ^4.0.5",
"symfony/var-dumper": "^3.4 || ^4.0"
},
"conflict": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function testReturnsUniqueValueIfUniqueFlagsFound()
$result = $denormalizer->denormalize($fixture, $flags, $value);

$this->assertInstanceOf(UniqueValue::class, $result);
$this->stringContains('dummy_id', $result->getId());
$this->assertStringStartsWith('Dummy#', $result->getId());
$this->assertEquals('denormalized_value', $result->getValue());

$decoratedDenormalizerProphecy->denormalize(Argument::cetera())->shouldHaveBeenCalledTimes(1);
Expand Down Expand Up @@ -111,7 +111,7 @@ public function testIfParsedValueIsDynamicArrayThenUniqueFlagAppliesToItsElement
/** @var DynamicArrayValue $result */
$this->assertEquals(10, $result->getQuantifier());
$this->assertInstanceOf(UniqueValue::class, $result->getElement());
$this->stringContains('dummy_id', $result->getElement()->getId());
$this->assertStringStartsWith('Dummy#', $result->getElement()->getId());
$this->assertEquals('parsed_value', $result->getElement()->getValue());
}

Expand Down Expand Up @@ -159,11 +159,11 @@ public function testIfParsedValueIsArrayValueThenUniqueFlagAppliesToItsElementIn
$this->assertInstanceOf(ArrayValue::class, $result);
/** @var ArrayValue $result */
$this->assertInstanceOf(UniqueValue::class, $result->getValue()[0]);
$this->stringContains('dummy_id', $result->getValue()[0]->getId());
$this->assertStringStartsWith('Dummy#', $result->getValue()[0]->getId());
$this->assertEquals('foo', $result->getValue()[0]->getValue());

$this->assertInstanceOf(UniqueValue::class, $result->getValue()[1]);
$this->stringContains('dummy_id', $result->getValue()[1]->getId());
$this->assertStringStartsWith('Dummy#', $result->getValue()[1]->getId());
$this->assertEquals('bar', $result->getValue()[1]->getValue());
}

Expand Down

0 comments on commit 0d8fe50

Please sign in to comment.