Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.2.0
- Add user profile service.

## 1.1.1
- Updated datafile parsing to be able to handle additional fields.

Expand All @@ -6,7 +9,7 @@
- Gracefully handle empty entity IDs.
- Added event tags to track API to allow users to pass in event metadata.
- Deprecated the `eventValue` parameter from the track method. Should use `eventTags` to pass in event value instead.
- Relaxed restriction on monolog package.
- Relaxed restriction on monolog package.

## 1.0.1
- Updated to support more versions of json-schema package.
Expand Down
2 changes: 1 addition & 1 deletion src/Optimizely/Event/Builder/EventBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class EventBuilder
/**
* @const string Version of the Optimizely PHP SDK.
*/
const SDK_VERSION = '1.1.1';
const SDK_VERSION = '1.2.0';

/**
* @var string URL to send impression event to.
Expand Down
14 changes: 7 additions & 7 deletions tests/EventTests/EventBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testCreateImpressionEventNoAttributes()
'layerId' => '7719770039',
'visitorId' => 'testUserId',
'clientEngine' => 'php-sdk',
'clientVersion' => '1.1.1',
'clientVersion' => '1.2.0',
'timestamp' => time() * 1000,
'isGlobalHoldback' => false,
'userFeatures' => [],
Expand Down Expand Up @@ -84,7 +84,7 @@ public function testCreateImpressionEventWithAttributes()
'layerId' => '7719770039',
'visitorId' => 'testUserId',
'clientEngine' => 'php-sdk',
'clientVersion' => '1.1.1',
'clientVersion' => '1.2.0',
'timestamp' => time() * 1000,
'isGlobalHoldback' => false,
'userFeatures' => [[
Expand Down Expand Up @@ -129,7 +129,7 @@ public function testCreateConversionEventNoAttributesNoValue()
'visitorId' => 'testUserId',
'revision' => '15',
'clientEngine' => 'php-sdk',
'clientVersion' => '1.1.1',
'clientVersion' => '1.2.0',
'userFeatures' => [],
'isGlobalHoldback' => false,
'timestamp' => time() * 1000,
Expand Down Expand Up @@ -173,7 +173,7 @@ public function testCreateConversionEventWithAttributesNoValue()
'visitorId' => 'testUserId',
'revision' => '15',
'clientEngine' => 'php-sdk',
'clientVersion' => '1.1.1',
'clientVersion' => '1.2.0',
'isGlobalHoldback' => false,
'timestamp' => time() * 1000,
'eventFeatures' => [],
Expand Down Expand Up @@ -228,7 +228,7 @@ public function testCreateConversionEventNoAttributesWithValue()
'visitorId' => 'testUserId',
'revision' => '15',
'clientEngine' => 'php-sdk',
'clientVersion' => '1.1.1',
'clientVersion' => '1.2.0',
'userFeatures' => [],
'isGlobalHoldback' => false,
'timestamp' => time() * 1000,
Expand Down Expand Up @@ -282,7 +282,7 @@ public function testCreateConversionEventWithAttributesWithValue()
'visitorId' => 'testUserId',
'revision' => '15',
'clientEngine' => 'php-sdk',
'clientVersion' => '1.1.1',
'clientVersion' => '1.2.0',
'isGlobalHoldback' => false,
'timestamp' => time() * 1000,
'eventFeatures' => [
Expand Down Expand Up @@ -356,7 +356,7 @@ public function testCreateConversionEventNoAttributesWithInvalidValue()
'visitorId' => 'testUserId',
'revision' => '15',
'clientEngine' => 'php-sdk',
'clientVersion' => '1.1.1',
'clientVersion' => '1.2.0',
'userFeatures' => [],
'isGlobalHoldback' => false,
'timestamp' => time() * 1000,
Expand Down