phpDocumentor Gallery
PHPUnit
[ class tree: Gallery ] [ index: Gallery ] [ all elements ]

Class: EntityCounterEventListener

Source Location: /lib/tools/phpunit/GalleryTestCase.class

Class EntityCounterEventListener

Class Overview

Event listener that tracks how many entities were created and destroyed during the test.

We can use this to track to see if a test is leaking entities (ie, not doing proper cleanup).

Located in /lib/tools/phpunit/GalleryTestCase.class [line 1189]



		
		
		
		

Methods

[ Top ]
Method Summary
EntityCounterEventListener   EntityCounterEventListener()  
void   getCount()  
void   getRecentEntityId()  
void   handleEvent()  
void   setCount()  

[ Top ]
Methods
Constructor EntityCounterEventListener  [line 1191]

  EntityCounterEventListener EntityCounterEventListener( )



[ Top ]
getCount  [line 1223]

  void getCount( )



[ Top ]
getRecentEntityId  [line 1215]

  void getRecentEntityId( $className  )

Parameters:
   $className: 


[ Top ]
handleEvent  [line 1196]

  void handleEvent( $event  )

Parameters:
   $event: 


[ Top ]
setCount  [line 1219]

  void setCount( $count  )

Parameters:
   $count: 


[ Top ]

Documentation generated on Fri, 08 Oct 2010 05:05:32 -0700 by phpDocumentor 1.3.0RC6