setTitle() public method

Set Title
public setTitle ( string $value = 'Series Title' ) : Series
$value string
return Series
コード例 #1
0
ファイル: SeriesTest.php プロジェクト: hxsam/PHPPresentation
 public function testTitle()
 {
     $object = new Series();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Series', $object->setTitle());
     $this->assertEquals('Series Title', $object->getTitle());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Series', $object->setTitle('AAAA'));
     $this->assertEquals('AAAA', $object->getTitle());
 }