Esempio n. 1
0
 /**
  * @expectedException \LogicException
  * @covers Apricot\Component\DependencyInjection::freeze
  * @covers Apricot\Component\DependencyInjection::scope
  */
 public function testThrowsExceptionIfAccessFrozenScope()
 {
     Apricot::reset();
     Apricot::scope('main', function ($scope) {
     });
     Apricot::freeze('main');
     // Now trying to re-open the scope should throw an exception.
     Apricot::scope('main', function ($scope) {
     });
 }