PAGI\Node\MockedNode::assertSay PHP Method

assertSay() protected method

Generic method to expect prompt messages played.
protected assertSay ( string $what, integer $totalTimes, string[] $arguments = [] ) : MockedNode
$what string The pagi method name to expect.
$totalTimes integer Total times to expect this call
$arguments string[] The arguments to assert.
return MockedNode
    protected function assertSay($what, $totalTimes, $arguments = array())
    {
        $semiHash = serialize(array($what, $arguments));
        $this->expectedSay[$semiHash] = $totalTimes;
        return $this;
    }