Пример #1
0
 public function testWidth()
 {
     $object = new RichText();
     $value = rand(1, 100);
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\AbstractShape', $object->setWidth());
     $this->assertEquals(0, $object->getWidth());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\AbstractShape', $object->setWidth($value));
     $this->assertEquals($value, $object->getWidth());
 }