public function testGetGeneratorPdfLetter() { $generator = GeneratorSelector::select('pdf-letter'); $this->assertInstanceOf('ConvertGenerator', $generator); $this->assertEquals('application/pdf', $generator->getMimeType()); }
static function forLanguage($language, $format, $options) { return new BookCreator(new BookProvider(new Api($language), $options), GeneratorSelector::select($format)); }