cloud = CloudConfig::fromCloudinaryUrl($this->cloudinaryUrl); } public function testExcludedKeysAreNotSerialized() { self::assertStrEquals( 'cloud[cloud_name]=test123&cloud[api_key]=' . self::API_KEY, $this->cloud->toString([CloudConfig::API_SECRET]) ); self::assertStrEquals( 'cloud[cloud_name]=test123&cloud[api_key]=' . self::API_KEY . '&cloud[api_secret]=' . self::API_SECRET, $this->cloud->toString() ); } }