/** * @test * @dataProvider validCodeProvider * * @covers ::isValid * * @SuppressWarnings(PHPMD.StaticAccess) */ public function testIsValidCode($code, $expected) { $actual = Code::isValid($code); $this->assertTrue($expected === $actual); }