public function testGetAge() { $years = $this->o->getAge(); $now = new DateTime(); $int = $now->diff(new DateTime($this->datetime)); $this->assertEquals($int->y, $years); }