setIdentifier('testIdentifier') ->setCardinality('single') ->setBaseType('testBaseType') ->setEpoch('testEpoch') ->setNormalMinimum(1.00) ->setNormalMaximum(10.00) ->setValue('testValue'); $this->assertSame(json_encode([ 'identifier' => 'testIdentifier', 'cardinality' => 'single', 'baseType' => 'testBaseType', 'epoch' => 'testEpoch', 'type' => \taoResultServer_models_classes_OutcomeVariable::TYPE, 'normalMinimum' => 1.00, 'normalMaximum' => 10.00, 'value' => base64_encode('testValue'), ]), json_encode($subject)); } }