amp /include/SQL/SQL_Query/tests/Query/setType.php

Language PHP Lines 29
MD5 Hash 237d73f2e6f5d5ea11dbb29ad82a9462 Estimated Cost $329 (why?)
Repository https://github.com/radicaldesigns/amp.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
//
//  $Id$
//

require_once 'SQL/Query.php';

class tests_Query_setType extends tests_UnitTest
{
    // check that the type can be set via the constructor
    function test_viaConstructor()
    {
        $query = new SQL_Query( 'table', 'insert');
        $this->assertEquals('insert',$query->getType());
    }

    // set the type via the setType method
    function test_setType()
    {
        $query = new SQL_Query('');
        $query->setType('delete');

        $this->assertEquals('delete',$query->getType());
    }

}

?>
Back to Top