Skip to content

Commit 9729c2c

Browse files
author
Matt Auerbach
committed
Bump to 1.4.0
1 parent a4c1024 commit 9729c2c

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.4.0
2+
- Added support for Numeric Metrics.
3+
- Switched to new event API.
4+
15
## 1.3.0
26
- Added the forced bucketing feature, which allows customers to force users into variations in real time for QA purposes without requiring datafile downloads from the network. The following APIs are introduced:
37
```

src/Optimizely/Event/Builder/EventBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class EventBuilder
3636
/**
3737
* @const string Version of the Optimizely PHP SDK.
3838
*/
39-
const SDK_VERSION = '1.2.0';
39+
const SDK_VERSION = '1.4.0';
4040

4141
/**
4242
* @var string URL to send event to.

tests/EventTests/EventBuilderTest.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testCreateImpressionEventNoAttributesNoValue()
6868
'account_id' => '1592310167',
6969
'revision' => '15',
7070
'client_name' => 'php-sdk',
71-
'client_version' => '1.2.0',
71+
'client_version' => '1.4.0',
7272
'visitors'=> [[
7373
'attributes'=> [],
7474
'visitor_id'=> 'testUserId',
@@ -113,7 +113,7 @@ public function testCreateImpressionEventWithAttributesNoValue()
113113
'account_id' => '1592310167',
114114
'revision' => '15',
115115
'client_name' => 'php-sdk',
116-
'client_version' => '1.2.0',
116+
'client_version' => '1.4.0',
117117
'visitors'=> [[
118118
'attributes'=> [[
119119
'entity_id' => '7723280020',
@@ -170,7 +170,7 @@ public function testCreateImpressionEventWithFalseAttributesNoValue()
170170
'account_id' => '1592310167',
171171
'revision' => '15',
172172
'client_name' => 'php-sdk',
173-
'client_version' => '1.2.0',
173+
'client_version' => '1.4.0',
174174
'visitors'=> [[
175175
'attributes'=> [[
176176
'entity_id' => '7723280020',
@@ -227,7 +227,7 @@ public function testCreateImpressionEventWithZeroAttributesNoValue()
227227
'account_id' => '1592310167',
228228
'revision' => '15',
229229
'client_name' => 'php-sdk',
230-
'client_version' => '1.2.0',
230+
'client_version' => '1.4.0',
231231
'visitors'=> [[
232232
'attributes'=> [[
233233
'entity_id' => '7723280020',
@@ -284,7 +284,7 @@ public function testCreateImpressionEventWithInvalidAttributesNoValue()
284284
'account_id' => '1592310167',
285285
'revision' => '15',
286286
'client_name' => 'php-sdk',
287-
'client_version' => '1.2.0',
287+
'client_version' => '1.4.0',
288288
'visitors'=> [[
289289
'attributes'=> [],
290290
'visitor_id'=> 'testUserId',
@@ -332,7 +332,7 @@ public function testCreateConversionEventNoAttributesNoValue()
332332
'account_id' => '1592310167',
333333
'revision' => '15',
334334
'client_name' => 'php-sdk',
335-
'client_version' => '1.2.0',
335+
'client_version' => '1.4.0',
336336
'visitors'=> [[
337337
'attributes'=> [],
338338
'visitor_id'=> 'testUserId',
@@ -376,7 +376,7 @@ public function testCreateConversionEventWithAttributesNoValue()
376376
'account_id' => '1592310167',
377377
'revision' => '15',
378378
'client_name' => 'php-sdk',
379-
'client_version' => '1.2.0',
379+
'client_version' => '1.4.0',
380380
'visitors'=> [[
381381
'attributes'=> [[
382382
'entity_id' => '7723280020',
@@ -432,7 +432,7 @@ public function testCreateConversionEventInvalidAttributesNoValue()
432432
'account_id' => '1592310167',
433433
'revision' => '15',
434434
'client_name' => 'php-sdk',
435-
'client_version' => '1.2.0',
435+
'client_version' => '1.4.0',
436436
'visitors'=> [[
437437
'attributes'=> [],
438438
'visitor_id'=> 'testUserId',
@@ -481,7 +481,7 @@ public function testCreateConversionEventNoAttributesWithValue()
481481
'account_id' => '1592310167',
482482
'revision' => '15',
483483
'client_name' => 'php-sdk',
484-
'client_version' => '1.2.0',
484+
'client_version' => '1.4.0',
485485
'visitors'=> [[
486486
'attributes'=> [],
487487
'visitor_id'=> 'testUserId',
@@ -533,7 +533,7 @@ public function testCreateConversionEventWithAttributesWithValue()
533533
'account_id' => '1592310167',
534534
'revision' => '15',
535535
'client_name' => 'php-sdk',
536-
'client_version' => '1.2.0',
536+
'client_version' => '1.4.0',
537537
'visitors'=> [[
538538
'attributes'=> [[
539539
'entity_id' => '7723280020',
@@ -599,7 +599,7 @@ public function testCreateConversionEventWithAttributesWithNumericTag()
599599
'account_id' => '1592310167',
600600
'revision' => '15',
601601
'client_name' => 'php-sdk',
602-
'client_version' => '1.2.0',
602+
'client_version' => '1.4.0',
603603
'visitors'=> [[
604604
'attributes'=> [[
605605
'entity_id' => '7723280020',
@@ -660,7 +660,7 @@ public function testCreateConversionEventNoAttributesWithInvalidValue()
660660
'account_id' => '1592310167',
661661
'revision' => '15',
662662
'client_name' => 'php-sdk',
663-
'client_version' => '1.2.0',
663+
'client_version' => '1.4.0',
664664
'visitors'=> [[
665665
'attributes'=> [],
666666
'visitor_id'=> 'testUserId',
@@ -717,7 +717,7 @@ public function testCreateImpressionEventWithBucketingIDAttribute()
717717
'account_id' => '1592310167',
718718
'revision' => '15',
719719
'client_name' => 'php-sdk',
720-
'client_version' => '1.2.0',
720+
'client_version' => '1.4.0',
721721
'visitors'=> [[
722722
'attributes'=> [[
723723
'entity_id' => '7723280020',
@@ -778,7 +778,7 @@ public function testCreateConversionEventWithBucketingIDAttribute()
778778
'account_id' => '1592310167',
779779
'revision' => '15',
780780
'client_name' => 'php-sdk',
781-
'client_version' => '1.2.0',
781+
'client_version' => '1.4.0',
782782
'visitors'=> [[
783783
'attributes'=> [[
784784
'entity_id' => '7723280020',

0 commit comments

Comments
 (0)