PHP Classes

File: tests/unit/Sql/OrderbyTest.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   tests/unit/Sql/OrderbyTest.php   Download  
File: tests/unit/Sql/OrderbyTest.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 552 bytes
 

Contents

Class file image Download
<?php

class Sql_OrderbyTest extends UnitTestCase {
   
    function
setUp() {
    }
   
    function
TearDown() {
    }
   
    function
testSql_OrderbyNotNull() {
         
$Sql_Orderby = new A_Sql_Orderby('foo');
         
$this->assertEqual($Sql_Orderby->render(), " ORDER BY foo");
                 
         
$Sql_Orderby = new A_Sql_Orderby('foo', 'bar');
         
$this->assertEqual($Sql_Orderby->render(), " ORDER BY foo, bar");
                 
         
$Sql_Orderby = new A_Sql_Orderby(array('foo', 'bar'));
         
$this->assertEqual($Sql_Orderby->render(), " ORDER BY foo, bar");
              }
   
}