public function testHasValue() { $this->assertTrue($this->ds->hasValue('foo')); $this->assertTrue($this->ds->hasValue('quux')); $this->assertFalse($this->ds->hasValue('something')); $this->assertFalse($this->ds->hasValue('foo[key]')); $this->assertTrue($this->ds->hasValue('bar')); $this->assertTrue($this->ds->hasValue('bar[key]')); $this->assertTrue($this->ds->hasValue('bar[nullkey]')); $this->assertFalse($this->ds->hasValue('bar[missing]')); }
/** * See PEAR bugs #8414 and #8123 */ public function testQuotesAndBackslashesEscaped() { $this->assertEquals('yes', $this->ds->getValue('escape[o\'really]')); $this->assertEquals('no', $this->ds->getValue('escape[oh\\no]')); }