Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / validator / Tests / Constraints / GroupSequenceTest.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Validator\Tests\Constraints;
13
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\Validator\Constraints\GroupSequence;
16
17 /**
18  * @author Bernhard Schussek <bschussek@gmail.com>
19  */
20 class GroupSequenceTest extends TestCase
21 {
22     public function testCreate()
23     {
24         $sequence = new GroupSequence(array('Group 1', 'Group 2'));
25
26         $this->assertSame(array('Group 1', 'Group 2'), $sequence->groups);
27     }
28
29     public function testCreateDoctrineStyle()
30     {
31         $sequence = new GroupSequence(array('value' => array('Group 1', 'Group 2')));
32
33         $this->assertSame(array('Group 1', 'Group 2'), $sequence->groups);
34     }
35 }