Example #1
0
 /**
  * @expectedException              \RuntimeException
  * @expectedExceptionMessageRegExp /Not allowed `foo` constraint/
  */
 public function test()
 {
     $container = new Container(['resources' => ['foo' => ['constraints' => ['allowed' => []]]]]);
     $container->create('foo', ['foo' => 'bar']);
 }