From 466aabedbdb67c02aabbb8408aac8841147c0ff0 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Tue, 15 Dec 2015 16:53:33 +1000 Subject: [PATCH 1/2] Add test for select optgroups --- tests/FormBuilderTest.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/FormBuilderTest.php b/tests/FormBuilderTest.php index 9ee220c..50f326f 100644 --- a/tests/FormBuilderTest.php +++ b/tests/FormBuilderTest.php @@ -267,6 +267,27 @@ class FormBuilderTest extends PHPUnit_Framework_TestCase ['name' => 'select-name'] ); $this->assertEquals($select, ''); + + $select = $this->formBuilder->select( + 'size', + [ + 'Large sizes' => [ + 'L' => 'Large', + 'XL' => 'Extra Large', + ], + 'S' => 'Small', + ], + null, + [ + 'class' => 'class-name', + 'id' => 'select-id', + ] + ); + + $this->assertEquals( + $select, + '' + ); } public function testFormSelectRepopulation() From 6b68b0856c1cc6395b81274faaf1c675d89c97d9 Mon Sep 17 00:00:00 2001 From: Alexandre Butynski Date: Wed, 10 Feb 2016 13:45:37 +0100 Subject: [PATCH 2/2] Add PHP 7 to travis configuration --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index d5e67c2..c574333 100755 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ language: php php: - 5.5 - 5.6 + - 7.0 - hhvm sudo: false