From 87ae33bfbced12d3c61b2de911b6aca332045e19 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 3 Aug 2012 17:19:49 +0200 Subject: [PATCH] test another scenario --- tests/callnotifier/CallMonitorTest.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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'); -- 2.30.2