/** * @dataProvider provider */ public function testAuditField($field, $dataType, $newValue, $oldValue, $expectedDataType) { $audit = new Audit(); $auditField = new AuditField($audit, $field, $dataType, $newValue, $oldValue); $this->assertEquals($audit, $auditField->getAudit()); $this->assertEquals($expectedDataType, $auditField->getDataType()); $this->assertEquals($field, $auditField->getField()); $this->assertEquals($newValue, $auditField->getNewValue()); $this->assertEquals($oldValue, $auditField->getOldValue()); }