コード例 #1
0
 public function testRemoveNotFoundScope()
 {
     $class = Car::class;
     $classDefinition = (new ClassDefinition())->setClassName($class)->addScope(new ControllerScope());
     $this->expectException(ScopeNotFoundException::class);
     $classDefinition->removeScope(ServiceScope::getId());
 }
コード例 #2
0
 public function testScopeId()
 {
     static::assertEquals('service', ServiceScope::getId());
     static::assertEquals('controller', ControllerScope::getId());
 }