Skip to content

Commit 6f53445

Browse files
committed
Fix tests
1 parent 4cf5eb9 commit 6f53445

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"twig/twig": ">=1.35"
2424
},
2525
"require-dev": {
26-
"phpunit/phpunit": "~6.0",
2726
"php-coveralls/php-coveralls": "^1.0",
27+
"phpunit/phpunit": "^6.5",
2828
"squizlabs/php_codesniffer": "*"
2929
},
3030
"autoload": {

tests/unit/Fields/ChoiceFieldTest.php

-10
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,6 @@ public function testValidateChoiceUnexistent()
6161
$this->field->validate("option2");
6262
}
6363

64-
/**
65-
* @expectedException PHPForm\Exceptions\ValidationError
66-
* @expectedExceptionMessage Select a valid choice. "empty string" is not one of the available choices.
67-
*/
68-
public function testValidateChoiceEmpty()
69-
{
70-
$field = new ChoiceField(["choices" => array("option1" => "Option1")]);
71-
$field->validate("");
72-
}
73-
7464
public function testValidateValidValue()
7565
{
7666
$this->assertNull($this->field->validate("option1"));

0 commit comments

Comments
 (0)