Passed
Push — travis-db2 ( d653e0...a98f5b )
by Sergei
05:25
created

Db2SchemaManagerTest::testListTableWithBinary()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace Doctrine\Tests\DBAL\Functional\Schema;
4
5
use Doctrine\DBAL\Schema\Table;
6
7
class Db2SchemaManagerTest extends SchemaManagerFunctionalTestCase
8
{
9
    /**
10
     * @group DBAL-939
11
     */
12
    public function testGetBooleanColumn()
13
    {
14
        $table = new Table('boolean_column_test');
15
        $table->addColumn('bool', 'boolean');
16
        $table->addColumn('bool_commented', 'boolean', array('comment' => "That's a comment"));
17
18
        $this->_sm->createTable($table);
19
20
        $columns = $this->_sm->listTableColumns('boolean_column_test');
21
22
        self::assertInstanceOf('Doctrine\DBAL\Types\BooleanType', $columns['bool']->getType());
23
        self::assertInstanceOf('Doctrine\DBAL\Types\BooleanType', $columns['bool_commented']->getType());
24
25
        self::assertNull($columns['bool']->getComment());
26
        self::assertSame("That's a comment", $columns['bool_commented']->getComment());
27
    }
28
29
    public function testListTableWithBinary()
30
    {
31
        self::markTestSkipped('Binary data type is currently not supported on DB2 LUW');
32
    }
33
}
34