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