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)); }
/** * @expectedException \OutOfBoundsException */ public function testGetUndefinedContextArgument() { $context = new \Krucas\Settings\Context(); $context->get('test'); }