private function build_from_page($filename) { $full_name = dirname(__FILE__) . "/../tests/{$filename}"; $handle = fopen($full_name, "r"); $contents = fread($handle, filesize($full_name)); fclose($handle); $page = new IntellitimePage($contents); return $page->getForm(); }
public function testNoActionPresent() { $page = new IntellitimePage("<html><head/><body>apa</body></hmtl>"); $form = $page->getForm(); $this->assertNull($form); }