/** * @vcr NaicsTest_testSingleNaics */ public function testSingleNaics() { $service = new \GenericNAICS(); // Requesting a specific ID should be a sure way to only return a single result. $request = new \GetNAICSByID('54151'); $response = $service->GetNaicsByID($request); // Even if there is a single result there should be an ArrayOfNaics object with an array of NAICS attribute. // This ensures that the DocBlock is still valid. The is handled as the SOAP_SINGLE_ELEMENT_ARRAYS feature is // enabled by default. $this->assertAttributeTypeConsistency('array', 'NAICS', $response->getNAICSData()->getNAICSData()); }