public function testUtf8() { // UTF-8 string $x = "é"; $this->assertEqual(ShippingEasy_ApiRequestor::utf8($x), $x); // Latin-1 string $x = "é"; $this->assertEqual(ShippingEasy_ApiRequestor::utf8($x), "é"); // Not a string $x = TRUE; $this->assertEqual(ShippingEasy_ApiRequestor::utf8($x), $x); }
public function request($meth, $path, $params = null, $payload = null, $apiKey = null, $apiSecret = null) { $requestor = new ShippingEasy_ApiRequestor(); return $requestor->request($meth, $path, $params, $payload, $apiKey, $apiSecret); }