[ Index ]

PHP Cross Reference of Web Application Component Toolkit

title

Body

[close]

/tests/cases/examples/tags/list/ -> listroweven.test.php (source)

   1  <?php
   2  /**
   3   * @package WACT_TESTS
   4   * @version $Id: listroweven.test.php,v 1.1 2004/11/24 00:28:01 jeffmoore Exp $
   5   */
   6  
   7  /**
   8   * @package WACT_TESTS
   9   */
  10  class ExamplesTagsListRowEvenTestCase extends WACTWebTestCase {
  11      function ExamplesTagsListRowEvenTestCase($name = 'WebTestCase') {
  12          $this->WACTWebTestCase($name);
  13      }
  14  
  15      function testExists() {
  16          $this->assertTrue($this->get(WACT_EXAMPLES_HTTP_PATH . '/tags/list/listroweven.php'));
  17          $this->assertNormalPage();
  18          $this->assertWantedPattern('/'.
  19            '<TABLE.*>\s*' . 
  20                '<TR.*bgcolor="yellow".*>\s*' .
  21                  '<TD>1<\/TD>\s*' . 
  22                  '<TD.*>George<\/TD>\s*' .
  23                  '<TD.*>Washington<\/TD>\s*' .
  24                '<\/TR>\s*' .
  25                '<TR.*bgcolor="green".*>\s*' .
  26                  '<TD>2<\/TD>\s*' . 
  27                  '<TD.*>Alexander<\/TD>\s*' .
  28                  '<TD.*>Hamilton<\/TD>\s*' .
  29                '<\/TR>\s*' .
  30                '<TR.*bgcolor="yellow".*>\s*' .
  31                  '<TD>3<\/TD>\s*' . 
  32                  '<TD.*>Benjamin<\/TD>\s*' .
  33                  '<TD.*>Franklin<\/TD>\s*' .
  34                '<\/TR>\s*' .
  35            '<\/TABLE>' .
  36            '/i');
  37      }
  38  
  39  }
  40  ?>


Generated: Sun Nov 28 19:36:09 2004 Cross-referenced by PHPXref 0.5