Пример #1
0
 /**
  * Handle the event
  *
  * @param StartEvent $event
  */
 public function __invoke(StartEvent $event)
 {
     $classModel = $event->getClassModel();
     $this->addProperties($classModel);
     $this->addConstructor($classModel);
     $this->addWait($classModel);
 }
Пример #2
0
 public function testGetClassModel()
 {
     $classModel = Mockery::mock(ClassModel::class);
     $event = new StartEvent($classModel);
     $this->assertInstanceOf(ClassModel::class, $event->getClassModel());
 }