FunctionalTest::testPipeline PHP 메소드

testPipeline() 공개 메소드

public testPipeline ( )
    public function testPipeline()
    {
        $client = $this->client;
        $client->set('a', 1)->then($this->expectCallableOnce('OK'));
        $client->incr('a')->then($this->expectCallableOnce(2));
        $client->incr('a')->then($this->expectCallableOnce(3));
        $client->get('a')->then($this->expectCallableOnce('3'));
        $this->assertTrue($client->isBusy());
        $this->waitFor($client);
    }