Skip to content

Commit d90fddc

Browse files
Merge pull request #28 from optimizely/devel
Merge into master
2 parents 5a30f6c + 2e8f1d4 commit d90fddc

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.0.1
2+
- Updated to support more versions of json-schema package.
3+
14
## 1.0.0
25
- General release of Optimizely X Full Stack PHP SDK. No breaking changes from previous version.
36
- Introduced curl based event dispatcher.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": ">=5.5",
14-
"justinrainbow/json-schema": "4.0.0",
14+
"justinrainbow/json-schema": "^1.6 || ^2.0 || ^4.0",
1515
"lastguest/murmurhash": "1.3.0",
1616
"guzzlehttp/guzzle": "~5.3|~6.2",
1717
"monolog/monolog": "1.21.0"

src/Optimizely/Event/Builder/EventBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class EventBuilder
3333
/**
3434
* @const string Version of the Optimizely PHP SDK.
3535
*/
36-
const SDK_VERSION = '1.0.0';
36+
const SDK_VERSION = '1.0.1';
3737

3838
/**
3939
* @var string URL to send impression event to.

tests/EventTests/EventBuilderTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testCreateImpressionEventNoAttributes()
4848
'layerId' => '7719770039',
4949
'visitorId' => 'testUserId',
5050
'clientEngine' => 'php-sdk',
51-
'clientVersion' => '1.0.0',
51+
'clientVersion' => '1.0.1',
5252
'timestamp' => time() * 1000,
5353
'isGlobalHoldback' => false,
5454
'userFeatures' => [],
@@ -82,7 +82,7 @@ public function testCreateImpressionEventWithAttributes()
8282
'layerId' => '7719770039',
8383
'visitorId' => 'testUserId',
8484
'clientEngine' => 'php-sdk',
85-
'clientVersion' => '1.0.0',
85+
'clientVersion' => '1.0.1',
8686
'timestamp' => time() * 1000,
8787
'isGlobalHoldback' => false,
8888
'userFeatures' => [[
@@ -126,7 +126,7 @@ public function testCreateConversionEventNoAttributesNoValue()
126126
'accountId' => '1592310167',
127127
'visitorId' => 'testUserId',
128128
'clientEngine' => 'php-sdk',
129-
'clientVersion' => '1.0.0',
129+
'clientVersion' => '1.0.1',
130130
'userFeatures' => [],
131131
'isGlobalHoldback' => false,
132132
'timestamp' => time() * 1000,
@@ -168,7 +168,7 @@ public function testCreateConversionEventWithAttributesNoValue()
168168
'accountId' => '1592310167',
169169
'visitorId' => 'testUserId',
170170
'clientEngine' => 'php-sdk',
171-
'clientVersion' => '1.0.0',
171+
'clientVersion' => '1.0.1',
172172
'isGlobalHoldback' => false,
173173
'timestamp' => time() * 1000,
174174
'eventFeatures' => [],
@@ -221,7 +221,7 @@ public function testCreateConversionEventNoAttributesWithValue()
221221
'accountId' => '1592310167',
222222
'visitorId' => 'testUserId',
223223
'clientEngine' => 'php-sdk',
224-
'clientVersion' => '1.0.0',
224+
'clientVersion' => '1.0.1',
225225
'userFeatures' => [],
226226
'isGlobalHoldback' => false,
227227
'timestamp' => time() * 1000,
@@ -266,7 +266,7 @@ public function testCreateConversionEventWithAttributesWithValue()
266266
'accountId' => '1592310167',
267267
'visitorId' => 'testUserId',
268268
'clientEngine' => 'php-sdk',
269-
'clientVersion' => '1.0.0',
269+
'clientVersion' => '1.0.1',
270270
'isGlobalHoldback' => false,
271271
'timestamp' => time() * 1000,
272272
'eventFeatures' => [],

0 commit comments

Comments
 (0)