Skip to content

Commit

Permalink
minor #17080 Fix doctrine bridge tests on older PHP versions (jakzal)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.8 branch.

Discussion
----------

Fix doctrine bridge tests on older PHP versions

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | f176156
| License       | MIT
| Doc PR        | -

`Foo::class` constant was introduced in PHP 5.5.

Commits
-------

6c68946 Fix doctrine bridge tests on older PHP versions
  • Loading branch information
fabpot committed Dec 21, 2015
2 parents fb7640a + 6c68946 commit 1bc9aaa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ public function testSubmitSingleNonExpandedStringCastableIdentifier()

$this->persist(array($entity1, $entity2));

$field = $this->factory->createNamed('name', EntityType::class, null, array(
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
'multiple' => false,
'expanded' => false,
'em' => 'default',
Expand All @@ -638,7 +638,7 @@ public function testSubmitSingleStringCastableIdentifierExpanded()

$this->persist(array($entity1, $entity2));

$field = $this->factory->createNamed('name', EntityType::class, null, array(
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
'multiple' => false,
'expanded' => true,
'em' => 'default',
Expand All @@ -664,7 +664,7 @@ public function testSubmitMultipleNonExpandedStringCastableIdentifierForExisting

$this->persist(array($entity1, $entity2, $entity3));

$field = $this->factory->createNamed('name', EntityType::class, null, array(
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
'multiple' => true,
'expanded' => false,
'em' => 'default',
Expand Down Expand Up @@ -695,7 +695,7 @@ public function testSubmitMultipleNonExpandedStringCastableIdentifier()

$this->persist(array($entity1, $entity2, $entity3));

$field = $this->factory->createNamed('name', EntityType::class, null, array(
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
'multiple' => true,
'expanded' => false,
'em' => 'default',
Expand All @@ -720,7 +720,7 @@ public function testSubmitMultipleStringCastableIdentifierExpanded()

$this->persist(array($entity1, $entity2, $entity3));

$field = $this->factory->createNamed('name', EntityType::class, null, array(
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
'multiple' => true,
'expanded' => true,
'em' => 'default',
Expand Down

0 comments on commit 1bc9aaa

Please sign in to comment.