$this->loadDump('intern-22-zu-41.bin');
$this->assertCallCount(1, 1);
+ $this->assertOutgoing($this->calls['startingCall'][0]);
$this->assertFrom('22', $this->calls['startingCall'][0]);
$this->assertTo('**41', $this->calls['startingCall'][0]);
+ $this->assertOutgoing($this->calls['finishedCall'][0]);
$this->assertFrom('22', $this->calls['finishedCall'][0]);
$this->assertTo('**41', $this->calls['finishedCall'][0]);
}
$this->loadDump('intern-analog-zu-handy.bin');
$this->assertCallCount(1, 1);
+ $this->assertOutgoing($this->calls['startingCall'][0]);
$this->assertFrom('40862', $this->calls['startingCall'][0]);
$this->assertTo('01634779878', $this->calls['startingCall'][0]);
+ $this->assertOutgoing($this->calls['finishedCall'][0]);
$this->assertFrom('40862', $this->calls['finishedCall'][0]);
$this->assertTo('01634779878', $this->calls['finishedCall'][0]);
}
$this->loadDump('handy-zu-gruppe.bin');
$this->assertCallCount(1, 1);
+ $this->assertIncoming($this->calls['startingCall'][0]);
$this->assertFrom('01634779878', $this->calls['startingCall'][0]);
$this->assertTo('40862', $this->calls['startingCall'][0]);
+ $this->assertIncoming($this->calls['finishedCall'][0]);
$this->assertFrom('01634779878', $this->calls['finishedCall'][0]);
$this->assertTo('40862', $this->calls['finishedCall'][0]);
}
);
}
+ protected function assertIncoming(CallMonitor_Call $call)
+ {
+ $this->assertSame(
+ CallMonitor_Call::INCOMING, $call->type,
+ 'Call should be "incoming"'
+ );
+ }
+
+ protected function assertOutgoing(CallMonitor_Call $call)
+ {
+ $this->assertSame(
+ CallMonitor_Call::OUTGOING, $call->type,
+ 'Call should be "outgoing"'
+ );
+ }
+
}
?>