lithium\tests\integration\net\socket\StreamTest::testEncoding PHP Метод

testEncoding() публичный Метод

public testEncoding ( )
    public function testEncoding()
    {
        $stream = new Stream($this->_testConfig);
        $result = $stream->open();
        $stream->encoding('UTF-8');
        $result = $stream->resource();
        $this->assertInternalType('resource', $result);
        $stream = new Stream($this->_testConfig + array('encoding' => 'UTF-8'));
        $result = $stream->open();
        $result = $stream->resource();
        $this->assertInternalType('resource', $result);
    }