/** * @param string $method Вызываемый метод * @param object $raw * * @return object * @throws InvalidParameterException */ protected function map($method, $raw) { return $this->mapper->mapMethodResponse($method, $raw); }
/** * Test for getMethodConfigKey method * * ./vendor/bin/codecept run unit MapperTest.php:testGetMethodConfigKey * * @return void * * @covers \ITMH\Soap\Mapper::getMethodConfigKey */ public function testGetMethodConfigKey() { $config = ['method' => ['key' => 'value']]; $mapper = new Mapper(); $mapper->setConfig($config); $method = self::getMethod('getMethodConfigKey'); self::assertEquals('value', $method->invokeArgs($mapper, ['method', 'key'])); self::assertEquals(null, $method->invokeArgs($mapper, ['method', 'anotherKey'])); }