tests/IntegrationTests/POData/Misc/MiscTest.php
// eTag headers are not allowed if the requested entry doed not have etag property defined
eTag headers are not allowed if the requested entry doed not have etag property defined
eTag headers are not allowed if the requested entry doed not have etag property defined
function testETag_For_Entry3()
	{
        $ch = curl_init();
        $headers = array('If-None-Match:' . 'AAA');
        curl_setopt($ch, CURLOPT_URL, self::BASE_SERIVE_URL . '/Customers(\'ALFKI\')');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
        $result = curl_exec($ch);
        $info = curl_getinfo($ch);
        curl_close($ch);
        $pos = strpos($result, '<message>If-Match or If-None-Match headers cannot ');
        $this->assertTrue($pos !== false);
	}
function testETag_For_Entry3 ( ) { $ ch = curl_init ( ) ; $ headers = array ( 'If-None-Match:' . 'AAA' ) ; curl_setopt ( $ ch , CURLOPT_URL , self :: BASE_SERIVE_URL . '/Customers(\'ALFKI\')' ) ; curl_setopt ( $ ch , CURLOPT_RETURNTRANSFER , true ) ; curl_setopt ( $ ch , CURLOPT_HTTPHEADER , $ headers ) ; $ result = curl_exec ( $ ch ) ; $ info = curl_getinfo ( $ ch ) ; curl_close ( $ ch ) ; $ pos = strpos ( $ result , '<message>If-Match or If-None-Match headers cannot ' ) ; $ this -> assertTrue ( $ pos !== false ) ; }
eTag headers are not allowed if the requested entry doed not have etag property defined
eTag headers are not allowed if the requested entry doed not have etag property defined
// If-Match/If-None-Match allowed only for entry with etag properties