コード例 #1
0
ファイル: FormUtilTest.php プロジェクト: neokensou/symfony
 public function testIsChoiceGroupPart2()
 {
     if (version_compare(PHP_VERSION, '5.3.2') <= 0) {
         $this->markTestSkipped('PHP prior to 5.3.3 has issue with SplFixedArrays - https://bugs.php.net/bug.php?id=50481');
     }
     $this->assertSame(true, FormUtil::isChoiceGroup(new \SplFixedArray(1)));
 }
コード例 #2
0
ファイル: FormExtension.php プロジェクト: nicodmf/symfony
 public function isChoiceGroup($label)
 {
     return FormUtil::isChoiceGroup($label);
 }
コード例 #3
0
ファイル: FormUtilTest.php プロジェクト: usefulthink/symfony
 /**
  * @dataProvider isChoiceGroupProvider
  */
 public function testIsChoiceGroup($expected, $value)
 {
     $this->assertSame($expected, FormUtil::isChoiceGroup($value));
 }
コード例 #4
0
ファイル: FormUtilTest.php プロジェクト: laubosslink/lab
 public function testIsChoiceGroupPart2()
 {
     $this->assertTrue(FormUtil::isChoiceGroup(new \SplFixedArray(1)));
 }