Skip to content

Commit

Permalink
test double set of VASTAdTagURI
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Mar 24, 2016
1 parent 5c85002 commit 4657e85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Sokil/Vast/DocumentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ public function testCreateWrapperAdSection()
$ad1 = $document->createWrapperAdSection()
->setId('ad1')
->setAdSystem('Ad Server Name')
->setVASTAdTagURI('http://entertainmentserver.com/vart.xml');
->setVASTAdTagURI('http://entertainmentserver.com/vast1.xml')
->setVASTAdTagURI('http://entertainmentserver.com/vast2.xml');

$actualXml = str_replace(array("\r", "\n"), '', $document->toString());

$expectedXml = '<?xml version="1.0" encoding="UTF-8"?><VAST version="2.0"><Ad id="ad1"><Wrapper><AdSystem>Ad Server Name</AdSystem><VASTAdTagURI><![CDATA[http://entertainmentserver.com/vart.xml]]></VASTAdTagURI></Wrapper></Ad></VAST>';
$expectedXml = '<?xml version="1.0" encoding="UTF-8"?><VAST version="2.0"><Ad id="ad1"><Wrapper><AdSystem>Ad Server Name</AdSystem><VASTAdTagURI><![CDATA[http://entertainmentserver.com/vast2.xml]]></VASTAdTagURI></Wrapper></Ad></VAST>';

$this->assertEquals($expectedXml, $actualXml);
}
Expand Down

0 comments on commit 4657e85

Please sign in to comment.