Example #1
0
 /**
  * @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);
 }
Example #2
0
 /**
  * @param string $basePath
  */
 public function __construct($basePath)
 {
     $this->outputFolderPath = FixtureGenerator::getFixturesPath($basePath);
 }
Example #3
0
<?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();