public function __construct(array $testData, Writer $writer = null) { $this->testData = $testData; $this->writer = $writer ?: new TableWriter(); }