/**
  * @test
  */
 public function shouldAppendMultipleWhereClauses()
 {
     //given
     $whereClauses = array(new WhereClause('accounts', array('name' => 'some name')), new WhereClause('accounts', array('website' => 'http://foo.bar')));
     //when
     $where = WherePreparer::prepare($whereClauses)->get();
     //then
     $this->assertEquals("accounts.name = 'some name' AND accounts.website = 'http://foo.bar'", $where);
 }
Ejemplo n.º 2
0
 private function prepareWhere()
 {
     return WherePreparer::prepare($this->whereClauses)->get();
 }