@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | 'bool' => 't.bool', |
53 | 53 | ); |
54 | 54 | |
55 | - $expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'list', array('a', 'b', 'c') ); |
|
55 | + $expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'list', array( 'a', 'b', 'c' ) ); |
|
56 | 56 | $this->assertEquals( "t.list IN ('a','b','c')", $expr->toSource( $types, $translations ) ); |
57 | 57 | |
58 | - $expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '!=', 'list', array('a', 'b', 'c') ); |
|
58 | + $expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '!=', 'list', array( 'a', 'b', 'c' ) ); |
|
59 | 59 | $this->assertEquals( "t.list NOT IN ('a','b','c')", $expr->toSource( $types, $translations ) ); |
60 | 60 | |
61 | 61 | $expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '~=', 'string', 'value' ); |
@@ -64,16 +64,16 @@ discard block |
||
64 | 64 | $expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '<', 'float', 0.1 ); |
65 | 65 | $this->assertEquals( "t.float < 0.1", $expr->toSource( $types, $translations ) ); |
66 | 66 | |
67 | - $expr= new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '>', 'int', 10 ); |
|
67 | + $expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '>', 'int', 10 ); |
|
68 | 68 | $this->assertEquals( "t.int > 10", $expr->toSource( $types, $translations ) ); |
69 | 69 | |
70 | - $expr= new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '!=', 'undefined', null ); |
|
70 | + $expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '!=', 'undefined', null ); |
|
71 | 71 | $this->assertEquals( "t.undefined IS NOT NULL", $expr->toSource( $types, $translations ) ); |
72 | 72 | |
73 | - $expr= new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'bool', true ); |
|
73 | + $expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'bool', true ); |
|
74 | 74 | $this->assertEquals( "t.bool = 't'", $expr->toSource( $types, $translations ) ); |
75 | 75 | |
76 | - $expr= new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'bool', false ); |
|
76 | + $expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'bool', false ); |
|
77 | 77 | $this->assertEquals( "t.bool = 'f'", $expr->toSource( $types, $translations ) ); |
78 | 78 | } |
79 | 79 | } |
@@ -43,11 +43,11 @@ |
||
43 | 43 | |
44 | 44 | public function testGetConditionSource() |
45 | 45 | { |
46 | - $types = array( 'column' => \Aimeos\MW\DB\Statement\Base::PARAM_BOOL); |
|
46 | + $types = array( 'column' => \Aimeos\MW\DB\Statement\Base::PARAM_BOOL ); |
|
47 | 47 | $this->object->setConditions( $this->object->compare( '==', 'column', 0 ) ); |
48 | 48 | $this->assertEquals( "column = 'f'", $this->object->getConditionSource( $types ) ); |
49 | 49 | |
50 | - $types = array( 'column' => \Aimeos\MW\DB\Statement\Base::PARAM_BOOL); |
|
50 | + $types = array( 'column' => \Aimeos\MW\DB\Statement\Base::PARAM_BOOL ); |
|
51 | 51 | $this->object->setConditions( $this->object->compare( '==', 'column', 1 ) ); |
52 | 52 | $this->assertEquals( "column = 't'", $this->object->getConditionSource( $types ) ); |
53 | 53 | } |