setName() public method

Set the name of the slide
public setName ( string $name = null )
$name string
Exemplo n.º 1
0
 public function testName()
 {
     $object = new Slide();
     $this->assertNull($object->getName());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide', $object->setName('AAAA'));
     $this->assertEquals('AAAA', $object->getName());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide', $object->setName());
     $this->assertNull($object->getName());
 }