lithium\tests\cases\net\MessageTest::testToString PHP Method

testToString() public method

public testToString ( )
    public function testToString()
    {
        $expected = "woohoo";
        $this->message->body($expected);
        $result = (string) $this->message;
        $this->assertEqual($expected, $result);
        $result = $this->message->to('string');
        $this->assertEqual($expected, $result);
    }