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'])); }
/** * @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')); }