Thruway\Registration::getCurrentCallCount PHP Метод

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

Get current call count
public getCurrentCallCount ( ) : integer
Результат integer
    public function getCurrentCallCount()
    {
        return count($this->calls);
    }

Usage Example

Пример #1
0
 public function testMakingCallIncrementsCallCount()
 {
     $mockSession = $this->getMockBuilder('\\Thruway\\Session')->setConstructorArgs([new \Thruway\Transport\DummyTransport()])->getMock();
     $this->assertEquals(0, $this->_registration->getCurrentCallCount());
     $callMsg = new \Thruway\Message\CallMessage(\Thruway\Session::getUniqueId(), new \stdClass(), 'test_procedure');
     $call = new \Thruway\Call($mockSession, $callMsg);
     $this->_registration->processCall($call);
     $this->assertEquals(1, $this->_registration->getCurrentCallCount());
 }
All Usage Examples Of Thruway\Registration::getCurrentCallCount