[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/tests_runner/lib/simpletest/extensions/dom_tester/ -> dom_tester_doc_test.php (source)

   1  <?php
   2  
   3  // $Id: dom_tester_doc_test.php,v 1.1 2007/05/31 21:29:21 pp11 Exp $

   4  
   5  require_once(dirname(__FILE__) . '/../../autorun.php');
   6  require_once(dirname(__FILE__) . '/../dom_tester.php');
   7  
   8  SimpleTest :: prefer(new TextReporter());
   9  
  10  class TestOfLiveCssSelectors extends DomTestCase {
  11      function setUp() {
  12          $this->addHeader('User-Agent: SimpleTest ' . SimpleTest::getVersion());
  13      }
  14      
  15      function testGet() {
  16          $url = 'http://localhost/~perrick/simpletest/docs/simpletest.org/';
  17          $this->assertTrue($this->get($url));
  18          $this->assertEqual($this->getUrl(), $url);
  19          $this->assertElementsBySelector('h2', array('Screenshots', 'Documentation', 'Contributing'));
  20          $this->assertElementsBySelector('a[href="http://simpletest.org/api/"]', array('the complete API', 'documented API'));
  21             $this->assertElementsBySelector('div#content > p > strong', array('SimpleTest PHP unit tester'));
  22      }
  23  }
  24  
  25  ?>


Generated: Sat Nov 22 03:48:54 2008 Cross-referenced by PHPXref 0.7