Skip to content

Commit

Permalink
Create CallTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentmuller committed Mar 1, 2024
1 parent dd75a07 commit ea5b17f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/Highcharts/CallTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
/*
* This file is part of the HighchartsBundle package.
*
* (c) bibi.nu <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace HighchartsBundle\Tests\Highcharts;

use HighchartsBundle\Highcharts\Highchart;
use PHPUnit\Framework\TestCase;

class CallTest extends TestCase
{
public function testCallColors(): void
{
$name = 'colors';
$expected = [];
$chart = new Highchart();
$chart->__call($name, $expected);
$actual = $chart->colors;
self::assertSame($expected, $actual);
}
}

0 comments on commit ea5b17f

Please sign in to comment.