/** * @Then I should be able to create empty images of width :width and height :height */ public function iShouldBeAbleToCreateEmptyImagesOfWidthAndHeight($width, $height) { $image = $this->fixturesGenerator->createEmptyImage($width, $height); expect($image instanceof Image)->toBe(true); expect($image->getWidth() == $width)->toBe(true); expect($image->getHeight() == $height)->toBe(true); }
/** * @param string $basePath */ public function __construct($basePath) { $this->outputFolderPath = FixtureGenerator::getFixturesPath($basePath); }
<?php /** * Simple chart stroking to check if the functionality itself works */ require __DIR__ . '/../../../vendor/autoload.php'; use CpChart\Behat\Fixtures\FixtureGenerator; $generator = new FixtureGenerator(); $image = $generator->createEmptyImage(); $generator->setSplineData($image); $image->stroke();