-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e4e1eb
commit e820e14
Showing
58 changed files
with
246 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,15 @@ | |
namespace Symfony\Component\Form\Tests\ChoiceList; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait; | ||
|
||
/** | ||
* @author Bernhard Schussek <[email protected]> | ||
*/ | ||
abstract class AbstractChoiceListTest extends TestCase | ||
{ | ||
use ForwardCompatTestTrait; | ||
|
||
/** | ||
* @var \Symfony\Component\Form\ChoiceList\ChoiceListInterface | ||
*/ | ||
|
@@ -103,7 +106,7 @@ abstract class AbstractChoiceListTest extends TestCase | |
*/ | ||
protected $key4; | ||
|
||
protected function setUp() | ||
private function doSetUp() | ||
{ | ||
parent::setUp(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,19 @@ | |
|
||
namespace Symfony\Component\Form\Tests\ChoiceList; | ||
|
||
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait; | ||
use Symfony\Component\Form\ChoiceList\ArrayChoiceList; | ||
|
||
/** | ||
* @author Bernhard Schussek <[email protected]> | ||
*/ | ||
class ArrayChoiceListTest extends AbstractChoiceListTest | ||
{ | ||
use ForwardCompatTestTrait; | ||
|
||
private $object; | ||
|
||
protected function setUp() | ||
private function doSetUp() | ||
{ | ||
$this->object = new \stdClass(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,16 @@ | |
namespace Symfony\Component\Form\Tests\ChoiceList\Factory; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait; | ||
use Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator; | ||
|
||
/** | ||
* @author Bernhard Schussek <[email protected]> | ||
*/ | ||
class CachingFactoryDecoratorTest extends TestCase | ||
{ | ||
use ForwardCompatTestTrait; | ||
|
||
/** | ||
* @var \PHPUnit_Framework_MockObject_MockObject | ||
*/ | ||
|
@@ -29,7 +32,7 @@ class CachingFactoryDecoratorTest extends TestCase | |
*/ | ||
private $factory; | ||
|
||
protected function setUp() | ||
private function doSetUp() | ||
{ | ||
$this->decoratedFactory = $this->getMockBuilder('Symfony\Component\Form\ChoiceList\Factory\ChoiceListFactoryInterface')->getMock(); | ||
$this->factory = new CachingFactoryDecorator($this->decoratedFactory); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.