9.6, 'testEstimateDefaultWordWidth' => 9.6, 'testEstimateWordWidthDifferentSize' => 31.9, 'testEstimateWordWidthDifferentSizeAndUnit' => 11.3, 'testEstimateBoldWordWidth' => 10.4, 'testEstimateMonospaceWordWidth' => 36, 'testFontStyleFallback' => 16.3, 'testUtf8FontWidth' => 11.8, 'testCustomFontWidthEstimation' => null, ); public static function suite() { return new PHPUnit_Framework_TestSuite( __CLASS__ ); } public function setUp() { parent::setUp(); // Change error reporting - this is evil, but otherwise TCPDF will // abort the tests, because it throws lots of E_NOTICE and // E_DEPRECATED. $this->oldErrorReporting = error_reporting( E_PARSE | E_ERROR | E_WARNING ); } public function tearDown() { error_reporting( $this->oldErrorReporting ); parent::tearDown(); } /** * Get driver to test * * @return ezcDocumentPdfDriver */ protected function getDriver() { if ( !class_exists( 'TCPDF' ) ) { $this->markTestSkipped( 'This test requires the TCPDF class.' ); } return new ezcDocumentPdfTcpdfDriver(); } } ?>