public function testEnterWorkflowSuccess() { $post = new Item06(); verify('no post instance created', Item06Behavior::$countPost)->equals(0); expect('post is inserted in workflow', $post->enterWorkflow())->true(); expect('post count is 1', Item06Behavior::$countPost)->equals(1); $post1 = new Item06(); expect('post is inserted in workflow', $post1->enterWorkflow())->true(); expect('post count is 2', Item06Behavior::$countPost)->equals(2); $post2 = new Item06(); expect('post is not inserted in workflow', $post2->enterWorkflow())->false(); expect('post count is 2', Item06Behavior::$countPost)->equals(2); expect('post2 status is not set', $post2->getWorkflowStatus())->equals(null); }