This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
9
{
10
/**
11
* @test
12
*/
13
public function itShouldReturnIpv6Address(): void
14
{
15
$ipAddress = $this->faker()->ipv6;
16
17
$ipv6 = new Ipv6($ipAddress);
18
19
$this->assertSame($ipAddress, $ipv6->value());
20
}
21
22
public function invalidIpv6Provider(): array
23
{
24
return [
25
[$this->faker()->ipv4],
26
[$this->faker()->localIpv4],
27
];
28
}
29
30
/**
31
* @test
32
* @dataProvider invalidIpv6Provider
33
*/
34
public function itShouldThrowsException(string $data): void
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.