Skip to content

Commit e21c4d6

Browse files
committed
✅ Inbound test added.
1 parent 3b0064a commit e21c4d6

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

test/Client/SignatureTest.php

+29-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testSignature($sig, $params, $secret)
4444
public function signatures()
4545
{
4646
return array(
47-
//real signature
47+
//inbound
4848
array('d2e7b1dc968737c5998ad624e02f90b7', array(
4949
'message-timestamp' => '2013-11-21 15:27:30',
5050
'messageId' => '020000001B0FE827',
@@ -86,6 +86,34 @@ public function signatures()
8686
'type' => 'text',
8787
'sig' => '83c052a82906ec7c116e16f6d92f7eee'
8888
), 'my_secret_key_for_testing'),
89+
90+
array('ff933bf31c79ab3fc6a38d100191c48f', array(
91+
'keyword' => 'TESTINGS',
92+
'message-timestamp' => '2017-04-04 23:05:22',
93+
'messageId' => '0C00000027217D5B',
94+
'msisdn' => '14843472194',
95+
'nonce' => 'c4ab6ed2-9bf5-48a0-af91-107e29bdd399',
96+
'sig' => 'ff933bf31c79ab3fc6a38d100191c48f',
97+
'text' => 'Testings',
98+
'timestamp' => '1491347122',
99+
'to' => '12192259404',
100+
'type' => 'text',
101+
), 'my_secret_key_for_testing'),
102+
103+
array('e06d9763e3fd0b9c31beb5fc2fcb011c', array(
104+
'keyword' => 'TEST',
105+
'message-timestamp' => '2017-04-04 22:57:47',
106+
'messageId' => '0B00000042AC53BD',
107+
'msisdn' => '14843472194',
108+
'nonce' => '929d6744-bd28-42c8-b6cf-31d5b4f43732',
109+
'sig' => 'e06d9763e3fd0b9c31beb5fc2fcb011c',
110+
'text' => 'Test with & and =',
111+
'timestamp' => '1491346667',
112+
'to' => '12192259404',
113+
'type' => 'text'
114+
), 'my_secret_key_for_testing'),
115+
116+
//outbound
89117
array('17f5e3b22f778ec73464c01d180e9d0f', array(
90118
'api_key' => 'not_a_key',
91119
'from' => '12192259404',

0 commit comments

Comments
 (0)