lithium\net\socket\Context::encoding PHP Method

encoding() public method

Sets the encoding of the socket connection. Does not apply to this implementation.
public encoding ( string $charset = null ) : boolean
$charset string The character set to use.
return boolean `true` if encoding has been set, `false` otherwise.
    public function encoding($charset = null)
    {
        return false;
    }

Usage Example

 public function testEncoding()
 {
     $stream = new Context($this->_testConfig);
     $this->assertEqual(false, $stream->encoding());
 }