tests/UnitTests/POData/Writers/Atom/AtomODataWriterTest.php
/**
	 * Test for write top level URI item.
	 */
Test for write top level URI item.
Test for write top level URI item .
public function testODataURLItem()
    {
		$url = new ODataURL();
		$url->url = "http://www.odata.org/developers/protocols/atom-format";
	    $writer = new AtomODataWriter('http://localhost/NorthWind.svc');
		$result = $writer->write($url);
	    $this->assertSame($writer, $result);
	    $actual = $writer->getOutput();
	    $expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
		<uri xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices">http://www.odata.org/developers/protocols/atom-format</uri>';
	    $this->assertXmlStringEqualsXmlString($expected, $actual);
    }
public function testODataURLItem ( ) { $ url = new ODataURL ( ) ; $ url -> url = " http://www.odata.org/developers/protocols/atom-format " ; $ writer = new AtomODataWriter ( 'http://localhost/NorthWind.svc' ) ; $ result = $ writer -> write ( $ url ) ; $ this -> assertSame ( $ writer , $ result ) ; $ actual = $ writer -> getOutput ( ) ; $ expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
		<uri xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices">http://www.odata.org/developers/protocols/atom-format</uri>' ; $ this -> assertXmlStringEqualsXmlString ( $ expected , $ actual ) ; }
Test for write top level URI item.
Test for write top level URI item .