JamesMoss\Flywheel\PredicateTest::testAddingBoth PHP Method

testAddingBoth() public method

public testAddingBoth ( )
    public function testAddingBoth()
    {
        $pred = new Predicate();
        $pred->where('name', '==', 'fred')->orWhere('name', '==', 'alice')->orWhere('name', '==', 'hugo')->andWhere('age', '>', '28');
        $this->assertEquals(array(array(false, 'name', '==', 'fred'), array('or', 'name', '==', 'alice'), array('or', 'name', '==', 'hugo'), array('and', 'age', '>', '28')), $pred->getAll());
    }