Pheasant\Tests\TableCriteriaTest::testWhereWithArray PHP 메소드

testWhereWithArray() 공개 메소드

public testWhereWithArray ( )
    public function testWhereWithArray()
    {
        $criteria = $this->table->where(array('firstname' => 'Llama'));
        $this->assertEquals("(`firstname`='Llama')", $criteria->toSql());
        $this->assertEquals(1, $criteria->count(), 1);
    }