Code Duplication    Length = 8-8 lines in 2 locations

tests/SmsManagerTest.php 2 locations

@@ 75-82 (lines=8) @@
72
        $this->assertContains('baz', $response->getRecipients());
73
    }
74
75
    public function test_sms_builder_can_be_sent()
76
    {
77
        $response = Sms::send((new SmsBuilder)->via('bar')->to('baz')->send('foo'));
78
79
        $this->assertInstanceOf(BarDriver::class, $response);
80
        $this->assertEquals('foo', $response->getBody());
81
        $this->assertContains('baz', $response->getRecipients());
82
    }
83
84
    public function test_sms_builder_via_can_be_sent(Type $var = null)
85
    {
@@ 84-91 (lines=8) @@
81
        $this->assertContains('baz', $response->getRecipients());
82
    }
83
84
    public function test_sms_builder_via_can_be_sent(Type $var = null)
85
    {
86
        $response = Sms::via('bar')->send((new SmsBuilder)->to('baz')->send('foo'));
87
88
        $this->assertInstanceOf(BarDriver::class, $response);
89
        $this->assertEquals('foo', $response->getBody());
90
        $this->assertContains('baz', $response->getRecipients());
91
    }
92
}
93