eZ\Publish\Core\FieldType\Tests\TextLineTest::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 TextLineValue()), array('', new TextLineValue()), array(' ', new TextLineValue()), array(' sindelfingen ', new TextLineValue(' sindelfingen ')), array(new TextLineValue(' sindelfingen '), new TextLineValue(' sindelfingen ')), array('12345678901', new TextLineValue('12345678901')), array(new TextLineValue(''), new TextLineValue()), array(new TextLineValue(' '), new TextLineValue()), array(new TextLineValue(null), new TextLineValue()));
    }