eZ\Publish\Core\FieldType\Tests\MapLocationTest::provideValidInputForAcceptValue PHP Метод

provideValidInputForAcceptValue() публичный Метод

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 provideValidInputForAcceptValue ( ) : array
Результат array
    public function provideValidInputForAcceptValue()
    {
        return array(array(null, new MapLocation\Value()), array(array(), new MapLocation\Value()), array(new MapLocation\Value(), new MapLocation\Value()), array(array('latitude' => 23.42, 'longitude' => 42.23, 'address' => 'Nowhere'), new MapLocation\Value(array('latitude' => 23.42, 'longitude' => 42.23, 'address' => 'Nowhere'))), array(array('latitude' => 23, 'longitude' => 42, 'address' => 'Somewhere'), new MapLocation\Value(array('latitude' => 23, 'longitude' => 42, 'address' => 'Somewhere'))), array(new MapLocation\Value(array('latitude' => 23.42, 'longitude' => 42.23, 'address' => 'Nowhere')), new MapLocation\Value(array('latitude' => 23.42, 'longitude' => 42.23, 'address' => 'Nowhere'))));
    }