diff --git a/tests/Highcharts/CallTest.php b/tests/Highcharts/CallTest.php new file mode 100644 index 0000000..f30245a --- /dev/null +++ b/tests/Highcharts/CallTest.php @@ -0,0 +1,29 @@ + + * + * 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); + } +}