File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
tests/PhpPresentation/Tests Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ public function testAxisFont()
67
67
$ oShape ->getPlotArea ()->getAxisY ()->getFont ()->setName ('Arial ' );
68
68
69
69
$ oXMLDoc = TestHelperDOCX::getDocument ($ oPhpPresentation , 'ODPresentation ' );
70
+ $ this ->assertTrue ($ oXMLDoc ->fileExists ('Object 1/content.xml ' ));
70
71
71
72
$ element = '/office:document-content/office:body/office:chart/chart:chart ' ;
72
73
$ this ->assertTrue ($ oXMLDoc ->elementExists ($ element , 'Object 1/content.xml ' ));
Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ class TestHelperDOCX
35
35
/**
36
36
* Get document content
37
37
*
38
- * @param \PhpOffice\PhpPresentation\PhpPresentation $PhpPresentation
38
+ * @param \PhpOffice\PhpPresentation\PhpPresentation $phpPresentation
39
39
* @param string $writerName
40
40
* @return \PhpOffice\PhpPresentation\Tests\XmlDocument
41
41
*/
42
- public static function getDocument (PhpPresentation $ phpPresentation , $ writerName = ' PowerPoint2007 ' )
42
+ public static function getDocument (PhpPresentation $ phpPresentation , $ writerName )
43
43
{
44
44
self ::$ file = tempnam (sys_get_temp_dir (), 'PhpPresentation ' );
45
45
if (!is_dir (sys_get_temp_dir () . '/PhpPresentation_Unit_Test/ ' )) {
You can’t perform that action at this time.
0 commit comments