Pinq\Tests\Integration\Traversable\SelectTest::testThatSelectSupportsInternalFunctionsWithOneParameter PHP Method

testThatSelectSupportsInternalFunctionsWithOneParameter() public method

public testThatSelectSupportsInternalFunctionsWithOneParameter ( Pinq\ITraversable $values, array $data )
$values Pinq\ITraversable
$data array
    public function testThatSelectSupportsInternalFunctionsWithOneParameter(\Pinq\ITraversable $values, array $data)
    {
        //Signature: strlen($string)
        $paddedValues = $values->select('strlen');
        //Ensure that even though the key will be the second parameter, it does not trigger an error.
        $this->assertMatches($paddedValues, [5 => 3, 10 => 5, 20 => 11]);
    }