Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace CMEN\GoogleChartsBundle\Tests\Output\Javascript; use CMEN\GoogleChartsBu..

Decoded Output download

<?php

namespace CMEN\GoogleChartsBundle\Tests\Output\Javascript;

use CMEN\GoogleChartsBundle\Exception\GoogleChartsException;
use CMEN\GoogleChartsBundle\GoogleCharts\Data;
use CMEN\GoogleChartsBundle\Output\Javascript\DataOutput;
use CMEN\GoogleChartsBundle\Output\Javascript\DateOutput;
use PHPUnit\Framework\TestCase;

/**
 * @author Christophe Meneses
 */
class DataOutputTest extends TestCase
{
    /**
     * @throws GoogleChartsException
     */
    public function testEmptyData(): void
    {
        $this->expectException(GoogleChartsException::class);
        $this->expectExceptionMessage('There is no data for chart. Use method setArrayToDataTable() to provide data.');

        $data = new Data();

        $dataOutput = new DataOutput(new DateOutput());
        $dataOutput->draw($data, 'dataName');
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace CMEN\GoogleChartsBundle\Tests\Output\Javascript;

use CMEN\GoogleChartsBundle\Exception\GoogleChartsException;
use CMEN\GoogleChartsBundle\GoogleCharts\Data;
use CMEN\GoogleChartsBundle\Output\Javascript\DataOutput;
use CMEN\GoogleChartsBundle\Output\Javascript\DateOutput;
use PHPUnit\Framework\TestCase;

/**
 * @author Christophe Meneses
 */
class DataOutputTest extends TestCase
{
    /**
     * @throws GoogleChartsException
     */
    public function testEmptyData(): void
    {
        $this->expectException(GoogleChartsException::class);
        $this->expectExceptionMessage('There is no data for chart. Use method setArrayToDataTable() to provide data.');

        $data = new Data();

        $dataOutput = new DataOutput(new DateOutput());
        $dataOutput->draw($data, 'dataName');
    }
}

Function Calls

None

Variables

None

Stats

MD5 076ee5c2113a8c9695855c8c424db82c
Eval Count 0
Decode Time 108 ms