public function testLiteralParameterWorksWhenContextIsProvided() { $this->validator->setToken(array('foo' => 'bar')); $this->validator->setLiteral(true); $this->assertTrue($this->validator->isValid(array('foo' => 'bar'), array('foo' => 'baz'))); }