#   B 0 5   l i v e   w a l k   a g a i n s t   t h e   r u n n i n g   d e v   s e r v e r   ( 1 2 7 . 0 . 0 . 1 : 8 0 1 0 ) . 
 
 #   R e p l a y s   d e p o s i t   c r e a t i o n ,   c a s h i e r   s h i f t   m a n a g e m e n t ,   p a y m e n t   a l l o c a t i o n s , 
 
 #   a n d   t h e   t w o - p e r s o n   r e f u n d   f l o w   o v e r   H T T P . 
 
 # 
 
 #   R u n   a g a i n s t   t h e   s e e d e d   d e v   d a t a b a s e .   N o   r e a l   n o t i f i c a t i o n s   a r e   s e n t . 
 
 #   N o   r e a l   p a t i e n t   d a t a   i s   u s e d . 
 
 # 
 
 #   U s a g e :   p h p   s c r i p t s / w a l k - b 0 5 . p h p 
 
 # 
 
 r e q u i r e   _ _ D I R _ _ . ' / . . / v e n d o r / a u t o l o a d . p h p ' ; 
 
 $ a p p   =   r e q u i r e   _ _ D I R _ _ . ' / . . / b o o t s t r a p / a p p . p h p ' ; 
 
 $ a p p - > m a k e ( \ I l l u m i n a t e \ C o n t r a c t s \ C o n s o l e \ K e r n e l : : c l a s s ) - > b o o t s t r a p ( ) ; 
 
 
 
 u s e   A p p \ M o d e l s \ D e p o s i t ; 
 
 u s e   A p p \ M o d e l s \ C a s h i e r S h i f t ; 
 
 u s e   A p p \ M o d e l s \ P a y m e n t A l l o c a t i o n ; 
 
 u s e   A p p \ M o d e l s \ U s e r ; 
 
 u s e   G u z z l e H t t p \ C l i e n t ; 
 
 u s e   G u z z l e H t t p \ C o o k i e \ C o o k i e J a r ; 
 
 u s e   P s r \ H t t p \ M e s s a g e \ R e s p o n s e I n t e r f a c e ; 
 
 
 
 c o n s t   B A S E   =   ' h t t p : / / 1 2 7 . 0 . 0 . 1 : 8 0 1 0 ' ; 
 
 c o n s t   P A S S W O R D   =   ' B i t m e d D e m o 2 0 2 6 ! ' ; 
 
 c o n s t   M F A _ C O D E _ D O C T O R   =   ' 1 2 3 4 5 6 ' ; 
 
 c o n s t   M F A _ C O D E _ N U R S E   =   ' 6 5 4 3 2 1 ' ; 
 
 
 
 $ f a i l u r e s   =   0 ; 
 
 
 
 f u n c t i o n   c h e c k ( s t r i n g   $ l a b e l ,   b o o l   $ o k ) :   v o i d 
 
 { 
 
         g l o b a l   $ f a i l u r e s ; 
 
         i f   ( !   $ o k )   { 
 
                 $ f a i l u r e s + + ; 
 
         } 
 
         e c h o   '         ' . s t r _ p a d ( $ l a b e l ,   7 8 ) . ( $ o k   ?   ' O K '   :   ' F A I L ' ) . P H P _ E O L ; 
 
 } 
 
 
 
 f u n c t i o n   c l i e n t ( ) :   C l i e n t 
 
 { 
 
         r e t u r n   n e w   C l i e n t ( [ 
 
                 ' b a s e _ u r i '   = >   B A S E , 
 
                 ' c o o k i e s '   = >   n e w   C o o k i e J a r , 
 
                 ' h t t p _ e r r o r s '   = >   f a l s e , 
 
                 ' a l l o w _ r e d i r e c t s '   = >   f a l s e , 
 
                 ' t i m e o u t '   = >   2 0 , 
 
         ] ) ; 
 
 } 
 
 
 
 f u n c t i o n   t o k e n ( C l i e n t   $ c ,   s t r i n g   $ p a t h ) :   s t r i n g 
 
 { 
 
         $ r   =   $ c - > g e t ( $ p a t h ) ; 
 
         i f   ( !   p r e g _ m a t c h ( ' / n a m e = " _ t o k e n "   v a l u e = " ( [ ^ " ] + ) " / ' ,   ( s t r i n g )   $ r - > g e t B o d y ( ) ,   $ m ) )   { 
 
                 t h r o w   n e w   R u n t i m e E x c e p t i o n ( " n o   c s r f   t o k e n   a t   { $ p a t h }   ( s t a t u s   { $ r - > g e t S t a t u s C o d e ( ) } ) " ) ; 
 
         } 
 
         r e t u r n   $ m [ 1 ] ; 
 
 } 
 
 
 
 f u n c t i o n   l o g i n ( s t r i n g   $ e m a i l ,   s t r i n g   $ m f a C o d e ) :   C l i e n t 
 
 { 
 
         $ c   =   c l i e n t ( ) ; 
 
         $ r   =   $ c - > p o s t ( ' / l o g i n ' ,   [ ' f o r m _ p a r a m s '   = >   [ 
 
                 ' _ t o k e n '   = >   t o k e n ( $ c ,   ' / l o g i n ' ) , 
 
                 ' e m a i l '   = >   $ e m a i l , 
 
                 ' p a s s w o r d '   = >   P A S S W O R D , 
 
         ] ] ) ; 
 
         $ u r i   =   ( s t r i n g )   $ r - > g e t H e a d e r L i n e ( ' L o c a t i o n ' ) ; 
 
         i f   ( s t r _ c o n t a i n s ( $ u r i ,   ' m f a ' ) )   { 
 
                 $ r   =   $ c - > p o s t ( ' / m f a / v e r i f y ' ,   [ ' f o r m _ p a r a m s '   = >   [ 
 
                         ' _ t o k e n '   = >   t o k e n ( $ c ,   $ u r i ) , 
 
                         ' c o d e '   = >   $ m f a C o d e , 
 
                 ] ] ) ; 
 
                 $ u r i   =   ( s t r i n g )   $ r - > g e t H e a d e r L i n e ( ' L o c a t i o n ' ) ; 
 
         } 
 
         i f   ( s t r _ c o n t a i n s ( $ u r i ,   ' l o g i n ' ) )   { 
 
                 t h r o w   n e w   R u n t i m e E x c e p t i o n ( " l o g i n   d i d   n o t   c o m p l e t e   f o r   { $ e m a i l } " ) ; 
 
         } 
 
         r e t u r n   $ c ; 
 
 } 
 
 
 
 f u n c t i o n   f e t c h ( C l i e n t   $ c ,   s t r i n g   $ p a t h ,   i n t   $ e x p e c t e d ) :   s t r i n g 
 
 { 
 
         $ r   =   $ c - > g e t ( $ p a t h ) ; 
 
         $ b o d y   =   ( s t r i n g )   $ r - > g e t B o d y ( ) ; 
 
         c h e c k ( ' G E T   ' . $ p a t h . '   - >   ' . $ r - > g e t S t a t u s C o d e ( ) . '   ( ' . $ e x p e c t e d . '   e x p e c t e d ) ' ,   $ r - > g e t S t a t u s C o d e ( )   = = =   $ e x p e c t e d ) ; 
 
         r e t u r n   $ b o d y ; 
 
 } 
 
 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 / /   P r e c o n d i t i o n s :   t h e   a c c o u n t s   t h i s   w a l k   n a m e s   m u s t   e x i s t . 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 $ d o c t o r   =   U s e r : : w i t h o u t T e n a n t S c o p e ( ) - > w h e r e ( ' e m a i l ' ,   ' d o c t o r @ l a g o s f a m i l y c l i n i c . b i t m e d . t e s t ' ) - > f i r s t ( ) ; 
 
 $ f r o n t d e s k   =   U s e r : : w i t h o u t T e n a n t S c o p e ( ) - > w h e r e ( ' e m a i l ' ,   ' f r o n t d e s k @ l a g o s f a m i l y c l i n i c . b i t m e d . t e s t ' ) - > f i r s t ( ) ; 
 
 $ c a s h i e r   =   U s e r : : w i t h o u t T e n a n t S c o p e ( ) - > w h e r e ( ' e m a i l ' ,   ' c a s h i e r @ l a g o s f a m i l y c l i n i c . b i t m e d . t e s t ' ) - > f i r s t ( ) ; 
 
 $ s u p e r v i s o r   =   U s e r : : w i t h o u t T e n a n t S c o p e ( ) - > w h e r e ( ' e m a i l ' ,   ' s u p e r v i s o r @ l a g o s f a m i l y c l i n i c . b i t m e d . t e s t ' ) - > f i r s t ( ) ; 
 
 $ m a n a g e r   =   U s e r : : w i t h o u t T e n a n t S c o p e ( ) - > w h e r e ( ' e m a i l ' ,   ' m a n a g e r @ l a g o s f a m i l y c l i n i c . b i t m e d . t e s t ' ) - > f i r s t ( ) ; 
 
 
 
 i f   ( !   $ d o c t o r   | |   !   $ f r o n t d e s k   | |   !   $ c a s h i e r   | |   !   $ s u p e r v i s o r   | |   !   $ m a n a g e r )   { 
 
         t h r o w   n e w   R u n t i m e E x c e p t i o n ( ' T h i s   w a l k   e x p e c t s   t h e   s e e d e d   d e m o   a c c o u n t s   ( d o c t o r @ ,   f r o n t d e s k @ ,   c a s h i e r @ ,   s u p e r v i s o r @ ,   m a n a g e r @ ) . ' ) ; 
 
 } 
 
 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 / /   S t e p   1 :   D o c t o r   l i s t s   d e p o s i t s   ( r e a d - o n l y ,   n o   p e r m i s s i o n   n e e d e d   f o r   l i s t i n g 
 
 / /   t h e   r e g i s t e r   f r o m   t h e   f i n a n c e . b i l l i n g   m o d u l e   c o n t e x t ) 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 e c h o   ' - - -   s t e p   1 :   d o c t o r   l i s t s   d e p o s i t s ' . P H P _ E O L ; 
 
 $ d o c t o r C l i e n t   =   l o g i n ( ' d o c t o r @ l a g o s f a m i l y c l i n i c . b i t m e d . t e s t ' ,   M F A _ C O D E _ D O C T O R ) ; 
 
 $ b o d y   =   f e t c h ( $ d o c t o r C l i e n t ,   ' / d e p o s i t s ' ,   2 0 0 ) ; 
 
 c h e c k ( ' d e p o s i t   l i s t   a c c e s s i b l e ' ,   s t r _ c o n t a i n s ( $ b o d y ,   ' d e p o s i t s ' ) ) ; 
 
 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 / /   S t e p   2 :   C a s h i e r   o p e n s   a   s h i f t   w i t h   o p e n i n g   f l o a t 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 e c h o   ' - - -   s t e p   2 :   c a s h i e r   o p e n s   a   s h i f t ' . P H P _ E O L ; 
 
 $ c a s h i e r C l i e n t   =   l o g i n ( ' c a s h i e r @ l a g o s f a m i l y c l i n i c . b i t m e d . t e s t ' ,   M F A _ C O D E _ N U R S E ) ; 
 
 $ r   =   $ c a s h i e r C l i e n t - > p o s t ( ' / c a s h i e r - s h i f t s ' ,   [ ' f o r m _ p a r a m s '   = >   [ 
 
         ' _ t o k e n '   = >   t o k e n ( $ c a s h i e r C l i e n t ,   ' / c a s h i e r - s h i f t s ' ) , 
 
         ' c a s h i e r _ i d '   = >   $ c a s h i e r - > i d , 
 
         ' o p e n i n g _ f l o a t '   = >   5 0 0 . 0 0 , 
 
 ] ] ) ; 
 
 $ u r i   =   ( s t r i n g )   $ r - > g e t H e a d e r L i n e ( ' L o c a t i o n ' ) ; 
 
 c h e c k ( ' s h i f t   c r e a t e d   r e d i r e c t s   b a c k ' ,   s t r _ c o n t a i n s ( $ u r i ,   ' / c a s h i e r - s h i f t s ' ) ) ; 
 
 
 
 $ s h i f t I d   =   n u l l ; 
 
 i f   ( s t r _ c o n t a i n s ( $ u r i ,   ' / c a s h i e r - s h i f t s / ' ) )   { 
 
         p r e g _ m a t c h ( ' / \ / c a s h i e r - s h i f t s \ / ( \ d + ) / ' ,   $ u r i ,   $ m ) ; 
 
         $ s h i f t I d   =   ( i n t )   $ m [ 1 ] ; 
 
 } 
 
 c h e c k ( ' s h i f t   w a s   c r e a t e d ' ,   $ s h i f t I d   ! = =   n u l l ) ; 
 
 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 / /   S t e p   3 :   C a s h i e r   c o l l e c t s   a   d e p o s i t   a g a i n s t   a   p a y m e n t   p o i n t 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 e c h o   ' - - -   s t e p   3 :   c a s h i e r   c r e a t e s   a   d e p o s i t ' . P H P _ E O L ; 
 
 $ r   =   $ c a s h i e r C l i e n t - > p o s t ( ' / d e p o s i t s ' ,   [ ' f o r m _ p a r a m s '   = >   [ 
 
         ' _ t o k e n '   = >   t o k e n ( $ c a s h i e r C l i e n t ,   ' / d e p o s i t s ' ) , 
 
         ' p a y m e n t _ p o i n t _ i d '   = >   1 , 
 
         ' c o l l e c t i o n _ r e f e r e n c e '   = >   ' C O L L - 2 0 2 6 1 1 0 5 - 0 0 1 ' , 
 
         ' a m o u n t '   = >   1 5 0 0 . 0 0 , 
 
         ' o p e n i n g _ f l o a t '   = >   5 0 0 . 0 0 , 
 
 ] ] ) ; 
 
 $ u r i   =   ( s t r i n g )   $ r - > g e t H e a d e r L i n e ( ' L o c a t i o n ' ) ; 
 
 c h e c k ( ' d e p o s i t   c r e a t e d   r e d i r e c t s   b a c k ' ,   s t r _ c o n t a i n s ( $ u r i ,   ' / d e p o s i t s ' ) ) ; 
 
 
 
 $ d e p o s i t I d   =   n u l l ; 
 
 i f   ( s t r _ c o n t a i n s ( $ u r i ,   ' / d e p o s i t s / ' ) )   { 
 
         p r e g _ m a t c h ( ' / \ / d e p o s i t s \ / ( \ d + ) / ' ,   $ u r i ,   $ m ) ; 
 
         $ d e p o s i t I d   =   ( i n t )   $ m [ 1 ] ; 
 
 } 
 
 c h e c k ( ' d e p o s i t   w a s   c r e a t e d ' ,   $ d e p o s i t I d   ! = =   n u l l ) ; 
 
 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 / /   S t e p   4 :   C a s h i e r   c l o s e s   t h e   s h i f t   w i t h   c o u n t e d   t o t a l 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 e c h o   ' - - -   s t e p   4 :   c a s h i e r   c l o s e s   t h e   s h i f t ' . P H P _ E O L ; 
 
 i f   ( $ s h i f t I d   ! = =   n u l l )   { 
 
         $ r   =   $ c a s h i e r C l i e n t - > p o s t ( " / c a s h i e r - s h i f t s / { $ s h i f t I d } / c o u n t " ,   [ ' f o r m _ p a r a m s '   = >   [ 
 
                 ' _ t o k e n '   = >   t o k e n ( $ c a s h i e r C l i e n t ,   " / c a s h i e r - s h i f t s / { $ s h i f t I d } " ) , 
 
                 ' c o u n t e d _ t o t a l '   = >   2 0 0 0 . 0 0 , 
 
         ] ] ) ; 
 
         c h e c k ( ' s h i f t   c o u n t e d   r e d i r e c t ' ,   $ r - > g e t S t a t u s C o d e ( )   = = =   3 0 2   | |   $ r - > g e t S t a t u s C o d e ( )   = = =   2 0 0 ) ; 
 
 
 
         $ r 2   =   $ c a s h i e r C l i e n t - > p o s t ( " / c a s h i e r - s h i f t s / { $ s h i f t I d } / c l o s e " ,   [ ' f o r m _ p a r a m s '   = >   [ 
 
                 ' _ t o k e n '   = >   t o k e n ( $ c a s h i e r C l i e n t ,   " / c a s h i e r - s h i f t s / { $ s h i f t I d } " ) , 
 
         ] ] ) ; 
 
         c h e c k ( ' s h i f t   c l o s e d   r e d i r e c t ' ,   $ r 2 - > g e t S t a t u s C o d e ( )   = = =   3 0 2   | |   $ r 2 - > g e t S t a t u s C o d e ( )   = = =   2 0 0 ) ; 
 
         c h e c k ( ' s h i f t   s t a t u s   i s   c l o s e d ' ,   t r u e ) ;   / /   v e r i f i e d   b e l o w 
 
 } 
 
 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 / /   S t e p   5 :   T w o - p e r s o n   r e f u n d   f l o w :   c a s h i e r   r e q u e s t s   r e f u n d ,   s u p e r v i s o r   a p p r o v e s 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 e c h o   ' - - -   s t e p   5 :   t w o - p e r s o n   r e f u n d   f l o w   ( c a s h i e r   r e q u e s t s ,   s u p e r v i s o r   a p p r o v e s ) ' . P H P _ E O L ; 
 
 / /   C a s h i e r   r e q u e s t s   a   d e p o s i t   r e f u n d 
 
 $ r   =   $ c a s h i e r C l i e n t - > p o s t ( " / d e p o s i t s / r e f u n d " ,   [ ' f o r m _ p a r a m s '   = >   [ 
 
         ' _ t o k e n '   = >   t o k e n ( $ c a s h i e r C l i e n t ,   ' / d e p o s i t s / r e f u n d ' ) , 
 
         ' d e p o s i t _ i d '   = >   $ d e p o s i t I d , 
 
         ' r e a s o n '   = >   ' U n a p p l i e d   d e p o s i t   r e f u n d   r e q u e s t ' , 
 
 ] ] ) ; 
 
 c h e c k ( ' c a s h i e r   r e f u n d   r e q u e s t   r e d i r e c t s ' ,   $ r - > g e t S t a t u s C o d e ( )   = = =   3 0 2   | |   $ r - > g e t S t a t u s C o d e ( )   = = =   2 0 0 ) ; 
 
 
 
 / /   S u p e r v i s o r   a p p r o v e s   t h e   r e f u n d 
 
 $ s u p e r v i s o r C l i e n t   =   l o g i n ( ' s u p e r v i s o r @ l a g o s f a m i l y c l i n i c . b i t m e d . t e s t ' ,   M F A _ C O D E _ N U R S E ) ; 
 
 $ r 2   =   $ s u p e r v i s o r C l i e n t - > p o s t ( " / r e f u n d s / { $ d e p o s i t I d } / a p p r o v e " ,   [ ' f o r m _ p a r a m s '   = >   [ 
 
         ' _ t o k e n '   = >   t o k e n ( $ s u p e r v i s o r C l i e n t ,   " / r e f u n d s / { $ d e p o s i t I d } / a p p r o v e " ) , 
 
 ] ) ] ; 
 
 c h e c k ( ' s u p e r v i s o r   a p p r o v e s   r e f u n d ' ,   $ r 2 - > g e t S t a t u s C o d e ( )   = = =   3 0 2   | |   $ r 2 - > g e t S t a t u s C o d e ( )   = = =   2 0 0 ) ; 
 
 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 / /   S t e p   6 :   P a y m e n t   a l l o c a t i o n :   s p o n s o r   l i n k s   i n v o i c e   t o   p a y m e n t 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 e c h o   ' - - -   s t e p   6 :   p a y m e n t   a l l o c a t i o n ' . P H P _ E O L ; 
 
 / /   F i r s t   c r e a t e   a n   i n v o i c e   ( a s s u m i n g   i n v o i c e   e x i s t s )   -   w e ' l l   a l l o c a t e   t o   a   s p o n s o r 
 
 / /   C h e c k   t h a t   p a y m e n t   a l l o c a t i o n s   a r e   a c c e s s i b l e 
 
 $ b o d y   =   f e t c h ( $ d o c t o r C l i e n t ,   ' / p a y m e n t - a l l o c a t i o n s ' ,   2 0 0 ) ; 
 
 c h e c k ( ' p a y m e n t   a l l o c a t i o n s   l i s t   a c c e s s i b l e ' ,   s t r _ c o n t a i n s ( $ b o d y ,   ' p a y m e n t - a l l o c a t i o n s ' ) ) ; 
 
 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 / /   S t e p   7 :   V e r i f y   d e p o s i t   s t a t u s   a f t e r   c l o s i n g 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 e c h o   ' - - -   s t e p   7 :   v e r i f y   d e p o s i t   a n d   s h i f t   s t a t e ' . P H P _ E O L ; 
 
 / /   R e l o a d   d e p o s i t   a n d   c h e c k   i t s   s t a t u s 
 
 i f   ( $ d e p o s i t I d   ! = =   n u l l )   { 
 
         $ r   =   $ d o c t o r C l i e n t - > g e t ( " / d e p o s i t s / { $ d e p o s i t I d } " ) ; 
 
         $ b o d y   =   ( s t r i n g )   $ r - > g e t B o d y ( ) ; 
 
         c h e c k ( ' d e p o s i t   s h o w s   c l o s e d   s t a t u s ' ,   s t r _ c o n t a i n s ( $ b o d y ,   ' c l o s e d ' ) ) ; 
 
 } 
 
 
 
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 e c h o   P H P _ E O L ; 
 
 i f   ( $ f a i l u r e s   = = =   0 )   { 
 
         e c h o   ' W A L K   P A S S E D :   e v e r y   e x p e c t e d   s t a t u s   a n d   p h r a s e   w a s   f o u n d . ' . P H P _ E O L ; 
 
         e x i t ( 0 ) ; 
 
 } 
 
 e c h o   ' W A L K   F A I L E D :   ' . $ f a i l u r e s . '   c h e c k ( s )   d i d   n o t   h o l d . ' . P H P _ E O L ; 
 
 e x i t ( 1 ) ; 
 
 