Example #1
0
 /**
  * @dataProvider dataProviderUpdate
  */
 public function testUpdateByAttribute($attributeName, $primaryKeyValue, $expected)
 {
     $data = array();
     $this->tableGatewayMock->expects($this->once())->method('update')->with($this->equalTo($data), $this->equalTo(array($expected)));
     $this->table->updateByAttribute($data, $attributeName, $primaryKeyValue);
 }