Advertisement
mOrloff

Untitled

Jun 20th, 2011
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php
  2.  
  3. class IndexControllerTest extends Zend_Test_PHPUnit_ControllerTestCase
  4. {
  5.  
  6.     public function setUp()
  7.     {
  8.         $this->bootstrap = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
  9.         parent::setUp();
  10.     }
  11.  
  12.     public function testColumnarLayout()
  13.     {
  14.         $this->assertQuery('div#columnA');
  15.         $this->assertQuery('div#columnB');
  16.         $this->assertQuery('div#columnC');
  17.         $this->assertQueryCountMin('div.col', 3);
  18.         $this->assertQueryCountMax('div.col', 3);
  19.     }
  20.  
  21.     public function testLitePage()  // no graphics allowed
  22.     {
  23.         $this->assertNotQueryContentContains('img');
  24.     }
  25.  
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement