setValue($value); $object->setListItems($types); $object->setAlias($alias); $object->setTag($tag); $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\SDT', $object); $this->assertEquals($type, $object->getType()); $this->assertEquals($types, $object->getListItems()); $this->assertEquals($value, $object->getValue()); $this->assertEquals($alias, $object->getAlias()); $this->assertEquals($tag, $object->getTag()); } /** * Test set type exception */ public function testSetTypeException() { $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('Invalid style value'); $object = new SDT('comboBox'); $object->setType('foo'); } /** * Test set type */ public function testSetTypeNull() { $object = new SDT('comboBox'); $object->setType(' '); $this->assertEquals('comboBox', $object->getType()); } }