File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -85,12 +85,15 @@ public function testCreateCallAndGetCallState() {
8585 $ response = $ this ->bandwidthClient ->getVoice ()->getClient ()->createCall (getenv ("BW_ACCOUNT_ID " ), $ body );
8686 $ callId = $ response ->getResult ()->callId ;
8787 $ this ->assertTrue (strlen ($ callId ) > 0 );
88-
88+ $ this ->assertTrue (is_a ($ response ->getResult ()->enqueuedTime , 'DateTime ' ));
89+
8990 sleep (1 );
9091
9192 //get phone call information
9293 $ response = $ this ->bandwidthClient ->getVoice ()->getClient ()->getCall (getenv ("BW_ACCOUNT_ID " ), $ callId );
9394 $ this ->assertTrue (strlen ($ response ->getResult ()->state ) > 0 );
95+ $ this ->assertTrue (is_a ($ response ->getResult ()->enqueuedTime , 'DateTime ' ));
96+
9497 }
9598
9699 public function testCreateCallWithAmdAndGetCallState () {
@@ -121,7 +124,6 @@ public function testCreateCallWithAmdAndGetCallState() {
121124 //get phone call information
122125 $ response = $ this ->bandwidthClient ->getVoice ()->getClient ()->getCall (getenv ("BW_ACCOUNT_ID " ), $ callId );
123126 $ this ->assertTrue (strlen ($ response ->getResult ()->state ) > 0 );
124- $ this ->assertTrue (is_a ($ response ->getResult ()->enqueuedTime , 'DateTime ' ));
125127 }
126128
127129 public function testCreateCallWithPriority () {
You can’t perform that action at this time.
0 commit comments