getContentEncoding() public method

public getContentEncoding ( )
 public function testWrapsContentEncoding()
 {
     $a = $this->getMockBuilder('Guzzle\\Http\\EntityBody')->setMethods(array('getContentEncoding'))->setConstructorArgs(array(fopen(__FILE__, 'r')))->getMock();
     $a->expects($this->once())->method('getContentEncoding')->will($this->returnValue('foo'));
     $d = new CachingEntityBody($a);
     $this->assertEquals('foo', $d->getContentEncoding());
 }