Lines Matching refs:doc
14 $doc = phpQuery::newDocument($xhtml);
16 $this->assertEquals(1, pq('form.bureaucracyau__plugin', $doc)->length);
17 $this->assertEquals(6, pq('form.bureaucracyau__plugin fieldset', $doc)->length);
20 $this->checkField($doc, 'Employee Name', 'input[type=text][value=Your Name].edit', true);
21 $this->checkField($doc, 'Your Age', 'input[type=text].edit', true);
22 $this->checkField($doc, 'Your E-Mail Address', 'input[type=text].edit', true);
23 $this->checkField($doc, 'Occupation (optional)', 'input[type=text].edit');
24 $this->checkField($doc, 'Some password', 'input[type=password].edit', true);
27 $select = $this->checkField($doc, 'Please select an option', 'select');
33 $this->assertEquals(1, pq('p:contains(Some static text)', $doc)->length);
36 $cb = $this->checkField($doc, 'Read the agreement?', 'input[type=checkbox][value=1]');
40 $this->checkField($doc, 'Tell me about your self', 'textarea.edit', true);
43 $this->checkField($doc, 'File1', 'input[type=file].edit', true);
54 $doc = phpQuery::newDocument($xhtml);
57 $this->assertEquals(0, pq('bold', $doc)->length);
60 private function checkField($doc, $name, $check, $required=false) { argument
62 $field = pq('form.bureaucracyau__plugin label span:contains(' . $name . ')', $doc);