aboutsummaryrefslogtreecommitdiff
path: root/tests/callnotifier/CallMonitorTest.php
diff options
context:
space:
mode:
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');