aboutsummaryrefslogtreecommitdiff
path: root/tests/callnotifier/CallMonitorTest.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-08-03 17:19:49 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-08-03 17:19:49 +0200
commit87ae33bfbced12d3c61b2de911b6aca332045e19 (patch)
tree73506142dc1c38cf4e11c4f201c0341922bfdace /tests/callnotifier/CallMonitorTest.php
parent46b5f25e75e0b5582c8f72e842417457675f967b (diff)
downloadauerswald-callnotifier-87ae33bfbced12d3c61b2de911b6aca332045e19.tar.gz
auerswald-callnotifier-87ae33bfbced12d3c61b2de911b6aca332045e19.zip
test another scenario
Diffstat (limited to 'tests/callnotifier/CallMonitorTest.php')
-rw-r--r--tests/callnotifier/CallMonitorTest.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/callnotifier/CallMonitorTest.php b/tests/callnotifier/CallMonitorTest.php
index 902a6c2..f40f47d 100644
--- a/tests/callnotifier/CallMonitorTest.php
+++ b/tests/callnotifier/CallMonitorTest.php
@@ -47,7 +47,7 @@ class CallMonitorTest extends \PHPUnit_Framework_TestCase implements Logger
$this->assertTo('**41', $this->calls['finishedCall'][0]);
}
- public function testIntCallToExternal()
+ public function testAnalogIntCallToExternal()
{
$this->loadDump('intern-analog-zu-handy.bin');
$this->assertCallCount(1, 1);
@@ -61,6 +61,20 @@ class CallMonitorTest extends \PHPUnit_Framework_TestCase implements Logger
$this->assertTo('01634779878', $this->calls['finishedCall'][0]);
}
+ public function testIsdnIntCallToExternal()
+ {
+ $this->loadDump('intern-22-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]);
+ }
+
public function testExtCallToIntGroup()
{
$this->loadDump('handy-zu-gruppe.bin');