improve code coverage
This commit is contained in:
parent
d52d9b8985
commit
0953065b8c
@ -119,4 +119,16 @@ class FieldTest extends \PHPUnit_Framework_TestCase
|
|||||||
$object = new Field('PAGE');
|
$object = new Field('PAGE');
|
||||||
$object->setOptions(array('foo' => 'bar'));
|
$object->setOptions(array('foo' => 'bar'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test setText exception
|
||||||
|
*
|
||||||
|
* @expectedException \InvalidArgumentException
|
||||||
|
* @expectedExceptionMessage Invalid text
|
||||||
|
*/
|
||||||
|
public function testSetTextException()
|
||||||
|
{
|
||||||
|
$object = new Field('XE');
|
||||||
|
$object->setText(array());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user