public function testSetContextArgument()
 {
     $context = new \Krucas\Settings\Context();
     $context->set('a', 'a');
     $serializer = new \Krucas\Settings\ContextSerializers\ContextSerializer();
     $this->assertEquals(serialize($context), $serializer->serialize($context));
 }
示例#2
0
 /**
  * @expectedException \OutOfBoundsException
  */
 public function testGetUndefinedContextArgument()
 {
     $context = new \Krucas\Settings\Context();
     $context->get('test');
 }