eZ\Publish\Core\FieldType\Tests\FloatTest::provideValidInputForAcceptValue PHP Method

provideValidInputForAcceptValue() public method

Returns an array of data provider sets with 2 arguments: 1. The valid input to acceptValue(), 2. The expected return value from acceptValue(). For example: return array( array( null, null ), array( __FILE__, new BinaryFileValue( array( 'path' => __FILE__, 'fileName' => basename( __FILE__ ), 'fileSize' => filesize( __FILE__ ), 'downloadCount' => 0, 'mimeType' => 'text/plain', ) ) ), ... );
    public function provideValidInputForAcceptValue()
    {
        return array(array(null, new FloatValue()), array(42.23, new FloatValue(42.23)), array(23, new FloatValue(23.0)), array(new FloatValue(23.42), new FloatValue(23.42)), array('42.23', new FloatValue(42.23)), array('23', new FloatValue(23.0)));
    }