setIdentifier('testIdentifier') ->setCardinality('single') ->setBaseType('testBaseType') ->setEpoch('testEpoch') ->setTrace('testTrace'); $this->assertSame(json_encode([ 'identifier' => 'testIdentifier', 'cardinality' => 'single', 'baseType' => 'testBaseType', 'epoch' => 'testEpoch', 'type' => \taoResultServer_models_classes_TraceVariable::TYPE, 'trace' => 'testTrace', ]), json_encode($subject)); } }