Merge remote-tracking branch 'github_troosan/support_for_xe_and_index_field' into develop

This commit is contained in:
antoine 2016-10-28 23:14:34 +02:00
commit 8318b412e9

View File

@ -119,4 +119,16 @@ class FieldTest extends \PHPUnit_Framework_TestCase
$object = new Field('PAGE');
$object->setOptions(array('foo' => 'bar'));
}
/**
* Test setText exception
*
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Invalid text
*/
public function testSetTextException()
{
$object = new Field('XE');
$object->setText(array());
}
}