test another scenario
authorChristian Weiske <cweiske@cweiske.de>
Fri, 3 Aug 2012 15:19:49 +0000 (17:19 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 3 Aug 2012 15:19:49 +0000 (17:19 +0200)
tests/callnotifier/CallMonitorTest.php

index 902a6c2..f40f47d 100644 (file)
@@ -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');