eZ\Publish\Core\FieldType\Tests\BinaryFileTest::provideInputForToHash PHP Метод

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

Returns an array of data provider sets with 2 arguments: 1. The valid input to toHash(), 2. The expected return value from toHash(). For example: return array( array( null, null ), array( new BinaryFileValue( array( 'id' => 'some/file/here', 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', ) ), array( 'id' => 'some/file/here', 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', ) ), ... );
public provideInputForToHash ( ) : array
Результат array
    public function provideInputForToHash()
    {
        return array(array(new BinaryFileValue(), null), array(new BinaryFileValue(array('id' => 'some/file/here', 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', 'uri' => 'http://some/file/here')), array('id' => 'some/file/here', 'inputUri' => null, 'path' => null, 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', 'uri' => 'http://some/file/here')), array(new BinaryFileValue(array('inputUri' => 'some/file/here', 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', 'uri' => 'http://some/file/here')), array('id' => null, 'inputUri' => 'some/file/here', 'path' => 'some/file/here', 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', 'uri' => 'http://some/file/here')), array(new BinaryFileValue(array('path' => 'some/file/here', 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', 'uri' => 'http://some/file/here')), array('id' => 'some/file/here', 'inputUri' => null, 'path' => null, 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', 'uri' => 'http://some/file/here')), array(new BinaryFileValue(array('path' => __FILE__, 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', 'uri' => 'http://some/file/here')), array('id' => null, 'inputUri' => __FILE__, 'path' => __FILE__, 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', 'uri' => 'http://some/file/here')), array(new BinaryFileValue(array('id' => __FILE__, 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', 'uri' => 'http://some/file/here')), array('id' => null, 'inputUri' => __FILE__, 'path' => __FILE__, 'fileName' => 'sindelfingen.jpg', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'image/jpeg', 'uri' => 'http://some/file/here')), array(new BinaryFileValue(array('id' => 'application/asdf1234.pdf', 'fileName' => 'asdf1234.pdf', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'application/pdf', 'uri' => 'http://some/file/here')), array('id' => 'application/asdf1234.pdf', 'inputUri' => null, 'path' => null, 'fileName' => 'asdf1234.pdf', 'fileSize' => 2342, 'downloadCount' => 0, 'mimeType' => 'application/pdf', 'uri' => 'http://some/file/here')));
    }