예제 #1
0
 /**
  * Test get/set color
  */
 public function testSetGetColor()
 {
     $object = new Shadow();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Shadow', $object->setColor());
     $this->assertNull($object->getColor());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Shadow', $object->setColor(new Color(Color::COLOR_BLUE)));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Color', $object->getColor());
     $this->assertEquals(Color::COLOR_BLUE, $object->getColor()->getARGB());
 }