rcrowe\Hippy\Tests\Client\BasicTest::testTransport PHP Метод

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

public testTransport ( )
    public function testTransport()
    {
        $transport = new Transport(null, null, null);
        $hippy = new Hippy($transport);
        $this->assertEquals(get_class($hippy->getTransport()), 'rcrowe\\Hippy\\Transport\\Guzzle');
        $transport = new Transport(null, null, null);
        $transport->helloWorld = 'egg';
        $hippy = new Hippy($transport);
        $hippy->setTransport($transport);
        $this->assertEquals($hippy->getTransport()->helloWorld, 'egg');
    }