From 36935c2be493c58afc024bfad0aff961721fee4b Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 9 Jan 2015 21:25:05 +0100 Subject: [PATCH] fixed wrong merge --- Tests/Validator/Abstract2Dot5ApiTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Tests/Validator/Abstract2Dot5ApiTest.php b/Tests/Validator/Abstract2Dot5ApiTest.php index 8829e45ef..f6a8b9a37 100644 --- a/Tests/Validator/Abstract2Dot5ApiTest.php +++ b/Tests/Validator/Abstract2Dot5ApiTest.php @@ -151,16 +151,16 @@ public function testValidateInSeparateContext() ; /** @var ConstraintViolationInterface[] $violations */ - $test->assertCount(1, $violations); - $test->assertSame('Message value', $violations[0]->getMessage()); - $test->assertSame('Message %param%', $violations[0]->getMessageTemplate()); - $test->assertSame(array('%param%' => 'value'), $violations[0]->getParameters()); - $test->assertSame('', $violations[0]->getPropertyPath()); + $this->assertCount(1, $violations); + $this->assertSame('Message value', $violations[0]->getMessage()); + $this->assertSame('Message %param%', $violations[0]->getMessageTemplate()); + $this->assertSame(array('%param%' => 'value'), $violations[0]->getParameters()); + $this->assertSame('', $violations[0]->getPropertyPath()); // The root is different as we're in a new context - $test->assertSame($entity->reference, $violations[0]->getRoot()); - $test->assertSame($entity->reference, $violations[0]->getInvalidValue()); - $test->assertNull($violations[0]->getPlural()); - $test->assertNull($violations[0]->getCode()); + $this->assertSame($entity->reference, $violations[0]->getRoot()); + $this->assertSame($entity->reference, $violations[0]->getInvalidValue()); + $this->assertNull($violations[0]->getPlural()); + $this->assertNull($violations[0]->getCode()); // Verify that this method is called $context->addViolation('Separate violation');