tests/Tables/Environments/PossibleActivitiesAccordingToContrastTableTest.php
/**
     * @test
     * @dataProvider provideContrastAndExpectedActionsExample
     * @param int $contrastValue
     * @param array|string[] $expectedActionExamples
     */
@test
@dataProvider provideContrastAndExpectedActionsExample
@param int $contrastValue
@param array|string[] $expectedActionExamples
@test @dataProvider provideContrastAndExpectedActionsExample @param int $contrastValue @param array|string [] $expectedActionExamples
public function I_can_get_possible_actions_example($contrastValue, array $expectedActionExamples)
    {
        $possibleActionsAccordingToLighting = new PossibleActivitiesAccordingToContrastTable();
        $possibleActionsExample = $possibleActionsAccordingToLighting
            ->getPossibleActionsExample(new PositiveIntegerObject($contrastValue));
        foreach ($expectedActionExamples as $expectedActionExample) {
            self::assertMatchesRegularExpression(
                '~(^|\W)' . $expectedActionExample . '(\W|$)~',
                $possibleActionsExample
            );
        }
    }
public function I_can_get_possible_actions_example ( $ contrastValue , array $ expectedActionExamples ) { $ possibleActionsAccordingToLighting = new PossibleActivitiesAccordingToContrastTable ( ) ; $ possibleActionsExample = $ possibleActionsAccordingToLighting -> getPossibleActionsExample ( new PositiveIntegerObject ( $ contrastValue ) ) ; foreach ( $ expectedActionExamples as $ expectedActionExample ) { self :: assertMatchesRegularExpression ( '~(^|\W)' . $ expectedActionExample . '(\W|$)~' , $ possibleActionsExample ) ; } }
@test
 @dataProvider provideContrastAndExpectedActionsExample
 @param int $contrastValue
 @param array|string[] $expectedActionExamples
@test @dataProvider provideContrastAndExpectedActionsExample @param int $contrastValue @param array|string [] $expectedActionExamples