setValue($value); $object->setListItems($types); $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\SDT', $object); $this->assertEquals($type, $object->getType()); $this->assertEquals($types, $object->getListItems()); $this->assertEquals($value, $object->getValue()); } /** * Test set type exception * * @expectedException \InvalidArgumentException * @expectedExceptionMessage Invalid style value */ public function testSetTypeException() { $object = new SDT('comboBox'); $object->setType('foo'); } /** * Test set type */ public function testSetTypeNull() { $object = new SDT('comboBox'); $object->setType(' '); $this->assertEquals('comboBox', $object->getType()); } }