Example #1
0
 public function test_convertArray_return_an_array_of_array_of_strings_when_given_multi_array()
 {
     $mock = $this->scaffoldMock();
     $ldxclient = new LdxClient($mock);
     $result = $ldxclient->convertArray([['firstKey' => 'firstValue1', 'secondKey' => 'secondValue1', 'thirdKey' => 'thirdValue1'], ['firstKey' => 'firstValue2', 'secondKey' => 'secondValue2', 'thirdKey' => 'thirdValue2'], ['firstKey' => 'firstValue3', 'secondKey' => 'secondValue3', 'thirdKey' => 'thirdValue3']]);
     $this->array($result)->array($result[0])->strictlyContainsValues(['firstKey', 'secondKey', 'thirdKey'])->array($result[1])->strictlyContainsValues(['firstValue1', 'secondValue1', 'thirdValue1'])->array($result[2])->strictlyContainsValues(['firstValue2', 'secondValue2', 'thirdValue2'])->array($result[3])->strictlyContainsValues(['firstValue3', 'secondValue3', 'thirdValue3']);
 }