tests/Tables/Environments/PowerOfLightSourcesTableTest.php
/**
     * @test
     * @dataProvider provideLightSourceAndPower
     * @param string $lightSourceValue
     * @param int $expectedPower
     */
@test
@dataProvider provideLightSourceAndPower
@param string $lightSourceValue
@param int $expectedPower
@test @dataProvider provideLightSourceAndPower @param string $lightSourceValue @param int $expectedPower
public function I_can_calculate_lighting_quality_in_distance($lightSourceValue, $expectedPower)
    {
        $powerOfLightSourcesTable = new PowerOfLightSourcesTable();
        $lightingQuality = $powerOfLightSourcesTable->calculateLightingQualityInDistance(
            LightSourceCode::getIt($lightSourceValue),
            $this->createDistance(123)
        );
        self::assertSame($expectedPower - 246, $lightingQuality);
    }
public function I_can_calculate_lighting_quality_in_distance ( $ lightSourceValue , $ expectedPower ) { $ powerOfLightSourcesTable = new PowerOfLightSourcesTable ( ) ; $ lightingQuality = $ powerOfLightSourcesTable -> calculateLightingQualityInDistance ( LightSourceCode :: getIt ( $ lightSourceValue ) , $ this -> createDistance ( 123 ) ) ; self :: assertSame ( $ expectedPower - 246 , $ lightingQuality ) ; }
@test
 @dataProvider provideLightSourceAndPower
 @param string $lightSourceValue
 @param int $expectedPower
@test @dataProvider provideLightSourceAndPower @param string $lightSourceValue @param int $expectedPower