PHP Classes

File: tests/unit/Sql/StatementTest.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   tests/unit/Sql/StatementTest.php   Download  
File: tests/unit/Sql/StatementTest.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: 564 bytes
 

Contents

Class file image Download
<?php

class Sql_Statement_MockDb {
}

class
Sql_Statement_MockStatement extends A_Sql_Statement {
    public function
callNotifyListeners() {
        return
$this->notifyListeners();
    }
}

class
Sql_StatementTest extends UnitTestCase {
   
    function
setUp() {
    }
   
    function
TearDown() {
    }
   
    function
testEmptyStringReturnsEmpty() {
       
$statement = new Sql_Statement_MockStatement();
       
$db = new Sql_Statement_MockDb();
       
$statement->setDb($db);
       
$this->assertEqual($statement->callNotifyListeners(), null);
    }
 
}