PHP Classes

File: test/FactoryTest.php

Recommend this page to a friend!
  Classes of Arthur Borisow   reliq   ???   Download  
File: test/???
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: reliq
Compose relational queries programmatically
Author: By
Last change:
Date: 13 years ago
Size: 768 bytes
 

Contents

Class file image Download
<?php

   
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' .
                
DIRECTORY_SEPARATOR . 'reliq'
                
. DIRECTORY_SEPARATOR
                
. 'autoload.php';

   
/**
     * Test class for Factory.
     * Generated by PHPUnit on 2011-08-12 at 13:40:13.
     */
   
class FactoryTest extends PHPUnit_Framework_TestCase {


        public function
test__callStatic() {
           
$node = Reliq\Factory::eq(new Reliq\Nodes\SqlNode('t'), 'tt');
           
$this->assertEquals('Reliq\Nodes\EqNode', get_class($node));
        }

       
/**
         * @expectedException Reliq\Exceptions\UnsupportedNodeException
         */
       
public function testException() {
           
Reliq\Factory::non_existing_node();
        }
    }

?>