示例#1
0
 public function testUnionFlatten()
 {
     $this->union->union(new Order\Directed('A', 'B'));
     $this->assertCount(1, $this->gateway->select(['item' => 'A']));
     $this->assertCount(3, $this->gateway->select(['set' => 'C']));
 }
示例#2
0
 /**
  * @expectedException BeaucalQuickUnion\Exception\OptionException
  * @expectedExceptionMessage invalid order_class
  */
 public function testOrderClassJunk()
 {
     $this->union->getOptions()->setOrderClass('BeaucalQuickUnion\\Order\\Junk');
     $this->union->union('D1', 'D2');
     $this->assertEquals($this->union->query('D1'), $this->union->query('D2'));
 }