diff --git a/Tests/Transformer/ModelToElasticaAutoTransformerTest.php b/Tests/Transformer/ModelToElasticaAutoTransformerTest.php index 5edd1c7..02f8e59 100644 --- a/Tests/Transformer/ModelToElasticaAutoTransformerTest.php +++ b/Tests/Transformer/ModelToElasticaAutoTransformerTest.php @@ -206,8 +206,8 @@ class ModelToElasticaAutoTransformerTest extends \PHPUnit_Framework_TestCase /* ProperyAccess 2.3+ removed PropertyAccessDeniedException, so we * must expect NoSuchPropertyException in its absence. */ - $expectedException = class_exists('Symfony\Component\Form\Exception\PropertyAccessDeniedException') - ? 'Symfony\Component\Form\Exception\PropertyAccessDeniedException' + $expectedException = class_exists('Symfony\Component\PropertyAccess\Exception\PropertyAccessDeniedException') + ? 'Symfony\Component\PropertyAccess\Exception\PropertyAccessDeniedException' : 'Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException'; $this->setExpectedException($expectedException);