eZ\Publish\Core\Persistence\Cache\PersistenceLogger::logCall PHP Method

logCall() public method

Log SPI calls with method name and arguments until $maxLogCalls is reached.
public logCall ( string $method, array $arguments = [] )
$method string
$arguments array
    public function logCall($method, array $arguments = array())
    {
        ++$this->count;
        if ($this->logCalls) {
            $this->calls[] = array('method' => $method, 'arguments' => $arguments);
        }
    }

Usage Example

 /**
  * @covers \eZ\Publish\Core\Persistence\Cache\PersistenceLogger::logCall
  */
 public function testLogCall()
 {
     $this->assertNull($this->logger->logCall(__METHOD__));
     $this->logger->logCall(__METHOD__);
     $this->logger->logCall(__METHOD__);
     $this->logger->logCall(__METHOD__, array(33));
     return $this->logger;
 }