PhpPresentation\Tests\Writer\PowerPoint2007\DocPropsAppTest::testCompany PHP Method

testCompany() public method

public testCompany ( )
    public function testCompany()
    {
        $expected = 'aAbBcDeE';
        $oPhpPresentation = new PhpPresentation();
        $oPhpPresentation->getDocumentProperties()->setCompany($expected);
        $oXMLDoc = TestHelperDOCX::getDocument($oPhpPresentation, 'PowerPoint2007');
        $this->assertTrue($oXMLDoc->fileExists('docProps/app.xml'));
        $this->assertTrue($oXMLDoc->elementExists('/Properties/Company', 'docProps/app.xml'));
        $this->assertEquals($expected, $oXMLDoc->getElement('/Properties/Company', 'docProps/app.xml')->nodeValue);
    }