rcrowe\Hippy\Tests\Client\BasicTest::testFrom PHP Method

testFrom() public method

public testFrom ( )
    public function testFrom()
    {
        $transport = new Transport(null, null, null);
        $hippy = new Hippy($transport);
        $this->assertNull($hippy->getFrom());
        $hippy->setFrom('rcrowe');
        $this->assertEquals($hippy->getFrom(), 'rcrowe');
        $transport = new Transport(null, null, 'vivalacrowe');
        $hippy = new Hippy($transport);
        $this->assertEquals($hippy->getFrom(), 'vivalacrowe');
    }