/**
  * @iterations 100
  */
 public function hydratorHydrationReusingHydratorWithTwentyProperties()
 {
     for ($i = 0; $i != 20; ++$i) {
         $object = new ClassMethodsObject();
         $data = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4, 'five' => 5, 'six' => 6, 'seven' => 7, 'eight' => 8, 'nine' => 9, 'ten' => 10, 'eleven' => 11, 'twelve' => 12, 'thirteen' => 13, 'fourteen' => 14, 'fifteen' => 15, 'sixteen' => 16, 'seventeen' => 17, 'eighteen' => 18, 'nineteen' => 19, 'twenty' => 19];
         $this->hydrator->hydrate($data, $object);
     }
 }
 public function testHydration()
 {
     $object = new ClassMethods();
     $hydrator = new ClassMethodsHydrator();
     $result = $hydrator->hydrate(['first_name' => 'Ben', 'last_name' => 'Scholzen', 'has_dog' => true, 'is_dead' => false], $object);
     $this->assertSame($object, $result);
     $this->assertEquals('Ben', $object->getFirstName());
     $this->assertEquals('Scholzen', $object->getLastName());
     $this->assertTrue($object->hasDog());
     $this->assertFalse($object->isDead());
 }