/**
  * Test the count method.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function testCount()
 {
     $this->assertCount(0, $this->instance);
     $listener1 = new EmptyListener();
     $listener2 = new EmptyListener();
     $this->instance->add($listener1, 0);
     $this->instance->add($listener2, 0);
     $this->assertCount(2, $this->instance);
 }
 /**
  * Test the count method.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function testCount()
 {
     $this->assertCount(0, $this->instance);
     $listener1 = function () {
     };
     $listener2 = function () {
         return false;
     };
     $this->instance->add($listener1, 0);
     $this->instance->add($listener2, 0);
     $this->assertCount(2, $this->instance);
 }