function it_sets_a_configuration(CharsetValidator $charsetValidator) { $charsetValidator->setConfiguration(['withHeader' => true, 'enclosure' => ';'])->shouldBeCalled(); $this->setCharsetValidator($charsetValidator); $this->setConfiguration(['withHeader' => true, 'enclosure' => ';']); }