예제 #1
0
파일: JoinTest.php 프로젝트: ketheriel/ETVA
 public function testAddConditions()
 {
     $j = new Join();
     $j->addCondition('foo', 'bar');
     $j->addCondition('baz', 'bal');
     $expect = array(array('left' => 'foo', 'operator' => '=', 'right' => 'bar'), array('left' => 'baz', 'operator' => '=', 'right' => 'bal'));
     $this->assertEquals(array('=', '='), $j->getOperators());
     $this->assertEquals(array('foo', 'baz'), $j->getLeftColumns());
     $this->assertEquals(array('bar', 'bal'), $j->getRightColumns());
     $this->assertEquals($expect, $j->getConditions());
 }