public function testIteratorCurrent() { $testForm = new Form(); $testElement = $this->getMockBuilder('Vascowhite\\Forms\\Elements\\Text')->disableOriginalConstructor()->getMock(); $testForm->addElement($testElement); $this->assertInstanceOf('Vascowhite\\Forms\\Elements\\Element', $testForm->current(), "Could not get current element"); }