コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * 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);
 }