Example #1
0
 /**
  * When accessing the getItem route then return a structure.
  */
 public function testWhenAccessingTheGetItemRouteThenReturnAStructure()
 {
     $client = new \SoapClient(APP_URL . '/wsdl', ['cache_wsdl' => WSDL_CACHE_NONE, 'location' => APP_URL . '/soap']);
     $response = '';
     try {
         $response = $client->getItem('TNE');
     } catch (\SoapFault $e) {
         static::fail($e->getMessage());
     }
     static::assertNotNull($response);
     static::assertTrue(is_object($response));
     static::assertEquals('TNE', $response->name);
 }