public function test_to_date_tag() { $active_record = new MockAkActiveRecord($this); $active_record->setReturnValue('get', '1978-06-16'); $ak_form_helper_instance_tag = new AkFormHelperInstanceTag('person', 'join_date', $active_record, null, $active_record); $this->assertEqual($ak_form_helper_instance_tag->to_date_tag(), file_get_contents(HelperUnitTest::getFixturesDir() . DS . 'form_helper_to_date_tag.txt')); }