/** * @testdox getValue() returns the original value */ public function testGetValue() { $obj = new stdClass(); $configValue = new ConfigValue($obj, 'foo'); $this->assertSame($obj, $configValue->getValue()); }
/** * Encode a ConfigValue instance into JavaScript * * @param ConfigValue $configValue * @return string */ protected function encodeConfigValue(ConfigValue $configValue) { return $configValue->isDeduplicated() ? $configValue->getVarName() : $this->encode($configValue->getValue()); }