public function setUp() { $this->conditions = $this->conditions(); parent::setUp(); }
protected function assertCondition($condition, $expected) { if ($condition instanceof \PHPixie\ORM\Conditions\Condition\Collection\RelatedTo\Group) { $this->assertEquals($expected[2], $condition->relationship()); $this->assertConditionArray($condition->conditions(), $expected[3]); } elseif ($condition instanceof \PHPixie\ORM\Conditions\Condition\In) { $this->assertEquals($expected[2], $condition->items()); } else { parent::assertCondition($condition, $expected); } }