|
4 | 4 |
|
5 | 5 | namespace MaxMind\Test\MinFraud\Model; |
6 | 6 |
|
| 7 | +use GeoIp2\Record\AnonymizerFeed; |
7 | 8 | use MaxMind\MinFraud\Model\Insights; |
8 | 9 | use MaxMind\MinFraud\Model\Score; |
9 | 10 | use MaxMind\Test\MinFraudData as Data; |
@@ -156,6 +157,30 @@ public function testInsightsProperties(): void |
156 | 157 | 'correct anonymizer network last seen' |
157 | 158 | ); |
158 | 159 |
|
| 160 | + $this->assertInstanceOf( |
| 161 | + AnonymizerFeed::class, |
| 162 | + $insights->ipAddress->anonymizer->residential, |
| 163 | + 'anonymizer residential is an AnonymizerFeed' |
| 164 | + ); |
| 165 | + |
| 166 | + $this->assertSame( |
| 167 | + $array['ip_address']['anonymizer']['residential']['confidence'], |
| 168 | + $insights->ipAddress->anonymizer->residential->confidence, |
| 169 | + 'correct anonymizer residential confidence' |
| 170 | + ); |
| 171 | + |
| 172 | + $this->assertSame( |
| 173 | + $array['ip_address']['anonymizer']['residential']['network_last_seen'], |
| 174 | + $insights->ipAddress->anonymizer->residential->networkLastSeen, |
| 175 | + 'correct anonymizer residential network last seen' |
| 176 | + ); |
| 177 | + |
| 178 | + $this->assertSame( |
| 179 | + $array['ip_address']['anonymizer']['residential']['provider_name'], |
| 180 | + $insights->ipAddress->anonymizer->residential->providerName, |
| 181 | + 'correct anonymizer residential provider name' |
| 182 | + ); |
| 183 | + |
159 | 184 | $this->assertSame( |
160 | 185 | $array['billing_phone']['country'], |
161 | 186 | $insights->billingPhone->country, |
|
0 commit comments