/** * Tests Valid::phone() * * @test * @dataProvider provider_phone * @param string $phone Phone number to test * @param boolean $expected Is $phone valid */ public function test_phone($phone, $lengths, $expected) { $this->assertSame($expected, Valid::phone($phone, $lengths)); }