behaviors() 공개 메소드

public behaviors ( )
 public function testAttachSuccess1()
 {
     $model = new Item01();
     $this->specify('behavior can be attached to ActiveRecord', function () use($model) {
         $behaviors = $model->behaviors();
         expect('model should have the "workflow" behavior attached', isset($behaviors['workflow']))->true();
         expect('model has a SimpleWorkflowBehavior attached', SimpleWorkflowBehavior::isAttachedTo($model))->true();
     });
 }