示例#1
0
 function let()
 {
     $api = new \Myna\Api($this->deploymentUuid);
     $deployment = $api->getDeployment();
     $experiment = $deployment->experiments[1];
     $session = new \Myna\CookieSession($experiment->uuid);
     $apiKey = $deployment->apiKey;
     $this->beConstructedWith($experiment, $session, $api, $apiKey);
 }
示例#2
0
 function it_returns_boolean_for_is_sticky()
 {
     // Initialise from real data
     $deploymentUuid = 'ae15f7c0-df1f-11e2-bfc7-7c6d628b25f7';
     $api = new \Myna\Api($deploymentUuid);
     $deployment = $api->getDeployment();
     $experiment = $deployment->experiments[1];
     assert(is_bool($experiment->is_sticky()) === true);
 }