/**
  * Test the count() method which is part of the ResultSet duck type.
  *
  * @return void
  */
 public function testCount()
 {
     $data = new \ArrayIterator([1, 2, 3]);
     $decorator = new ResultSetDecorator($data);
     $this->assertEquals(3, $decorator->count());
     $this->assertCount(3, $decorator);
 }