Skip to content

Commit

Permalink
Remove Dead Code
Browse files Browse the repository at this point in the history
  • Loading branch information
oleibman committed Dec 2, 2023
1 parent e92ab15 commit d4f1de9
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions tests/PhpSpreadsheetTests/Chart/PlotAreaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,7 @@ public function testPlotArea(): void

public function testNoPlotArea(): void
{
$dataSeriesValues = [
new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_NUMBER, null, null, 4, [1, 2, 3, 4]),
];

// Build the dataseries
$series = new DataSeries(
plotType: DataSeries::TYPE_AREACHART,
plotGrouping: DataSeries::GROUPING_PERCENT_STACKED,
plotOrder: range(0, count($dataSeriesValues) - 1),
plotValues: $dataSeriesValues
);

// Set the series in the plot area
//$plotArea = new PlotArea(null, [$series]);

// Create the chart
$chart = new Chart(
'chart1', // name
//plotArea: $plotArea,
);
$chart = new Chart('chart1');
$this->expectException(SpreadsheetException::class);
$this->expectExceptionMessage('Chart has no PlotArea');
$chart->getPlotAreaOrThrow();
Expand Down

0 comments on commit d4f1de9

Please sign in to comment.