Exemple #1
0
 public function testGet()
 {
     $data = ['key' => 'value'];
     $container = new Container($data);
     $this->assertEquals($data['key'], $container->get('key'));
     $this->assertNull($container->get('something'));
     $this->assertEquals(false, $container->get('something', false));
 }
Exemple #2
0
 public function getPatch()
 {
     return $this->parameters->get('patch');
 }
Exemple #3
0
 public function getRollback($default = '', $default)
 {
     return $this->parameters->get('rollback', $default);
 }