11 if (!defined(
'CLIENT_WEB_DIR')) {
12 define(
"CLIENT_WEB_DIR",
'my/client/web/dir');
21 '<xml> Some content </xml>',
27 '/some/where/background.jpg',
31 $userCertificateRepository = $this->getMockBuilder(
'ilUserCertificateRepository')
32 ->disableOriginalConstructor()
35 $userCertificateRepository->method(
'fetchCertificate')
38 $logger = $this->getMockBuilder(
'ilLogger')
39 ->disableOriginalConstructor()
42 $rpcHelper = $this->getMockBuilder(
'ilCertificateRpcClientFactoryHelper')
45 $rpcHelper->method(
'ilFO2PDF')
48 $pdfFileNameFactory = $this->getMockBuilder(
'ilCertificatePdfFileNameFactory')
49 ->disableOriginalConstructor()
53 $userCertificateRepository,
59 $pdfGenerator->generate(100);
64 if (!defined(
'CLIENT_WEB_DIR')) {
65 define(
"CLIENT_WEB_DIR",
'my/client/web/dir');
74 '<xml> Some content </xml>',
80 '/some/where/background.jpg',
84 $userCertificateRepository = $this->getMockBuilder(
'ilUserCertificateRepository')
85 ->disableOriginalConstructor()
88 $userCertificateRepository->method(
'fetchActiveCertificate')
91 $logger = $this->getMockBuilder(
'ilLogger')
92 ->disableOriginalConstructor()
95 $rpcHelper = $this->getMockBuilder(
'ilCertificateRpcClientFactoryHelper')
98 $rpcHelper->method(
'ilFO2PDF')
101 $pdfFileNameFactory = $this->getMockBuilder(
'ilCertificatePdfFileNameFactory')
102 ->disableOriginalConstructor()
106 $userCertificateRepository,
112 $pdfGenerator->generateCurrentActiveCertificate(100, 200);
118 public $scalar =
'Some scalar';
Class ilPdfGeneratorConstantsTest.
testGenerateSpecificCertificate()
if(@file_exists(dirname(__FILE__).'/lang/eng.php')) $certificate
testGenerateCurrentActiveCertificate()