tests/Tables/History/AncestryTableTest.php
/**
     * @test
     * @dataProvider provideBackgroundPointsAndExpectedAncestry
     * @param int $backgroundPoints
     * @param string $expectedAncestryValue
     */
@test
@dataProvider provideBackgroundPointsAndExpectedAncestry
@param int $backgroundPoints
@param string $expectedAncestryValue
@test @dataProvider provideBackgroundPointsAndExpectedAncestry @param int $backgroundPoints @param string $expectedAncestryValue
public function I_can_get_ancestry_by_background_points_and_vice_versa($backgroundPoints, $expectedAncestryValue)
    {
        $ancestryTable = new AncestryTable();
        $expectedAncestryCode = AncestryCode::getIt($expectedAncestryValue);
        self::assertSame(
            $expectedAncestryCode,
            $ancestryTable->getAncestryCodeByBackgroundPoints(new PositiveIntegerObject($backgroundPoints))
        );
        self::assertSame(
            $backgroundPoints,
            $ancestryTable->getBackgroundPointsByAncestryCode($expectedAncestryCode)
        );
    }
public function I_can_get_ancestry_by_background_points_and_vice_versa ( $ backgroundPoints , $ expectedAncestryValue ) { $ ancestryTable = new AncestryTable ( ) ; $ expectedAncestryCode = AncestryCode :: getIt ( $ expectedAncestryValue ) ; self :: assertSame ( $ expectedAncestryCode , $ ancestryTable -> getAncestryCodeByBackgroundPoints ( new PositiveIntegerObject ( $ backgroundPoints ) ) ) ; self :: assertSame ( $ backgroundPoints , $ ancestryTable -> getBackgroundPointsByAncestryCode ( $ expectedAncestryCode ) ) ; }
@test
 @dataProvider provideBackgroundPointsAndExpectedAncestry
 @param int $backgroundPoints
 @param string $expectedAncestryValue
@test @dataProvider provideBackgroundPointsAndExpectedAncestry @param int $backgroundPoints @param string $expectedAncestryValue