Passed
Push — Codacy ( 27b2c4...212f48 )
by Fabien
02:40
created

testgetLookingForAndExperiencesAndHumanFileName()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 30
Code Lines 26

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 30
rs 8.8571
cc 1
eloc 26
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the FabienCrassat\CurriculumVitaeBundle Symfony bundle.
5
 *
6
 * (c) Fabien Crassat <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace FabienCrassat\CurriculumVitaeBundle\Tests\Entity;
13
14
use FabienCrassat\CurriculumVitaeBundle\Entity\CurriculumVitae;
15
16
class CurriculumVitaeTest extends \PHPUnit_Framework_TestCase
17
{
18
    private $curriculumVitae;
19
    private $lang;
20
    private $interface;
21
    private $arrayToCompare;
22
23
    public function __construct() {
24
        $this->lang = 'en';
25
    }
26
27
    public function testgetLookingForAndExperiencesAndHumanFileName() {
28
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../Resources/data/backbone.xml', $this->lang);
29
30
        $result = array();
31
        $result = array_merge($result, array('lookingFor' => $this->curriculumVitae->getLookingFor()));
32
        $result = array_merge($result, array('experiences' => $this->curriculumVitae->getExperiences()));
33
        $result = array_merge($result, array('pdfFile' => $this->curriculumVitae->getHumanFileName()));
34
35
        $expected = array(
36
            'lookingFor' => array(
37
                'experience'   => array(
38
                    'date' => 'Date',
39
                    'job' => 'The job',
40
                    'society' => array(
41
                        'name' => 'My Company',
42
                        'address' => 'The address of the company',
43
                        'siteurl' => 'http://www.MyCompany.com')),
44
                'presentation' => 'A presentation'),
45
            'experiences' => array(
46
                'LastJob' => array(
47
                    'date' => 'Date',
48
                    'job' => 'The job',
49
                    'society' => array(
50
                        'name' => 'My Company',
51
                        'address' => 'The address of the company',
52
                        'siteurl' => 'http://www.MyCompany.com'))),
53
            'pdfFile' => 'First Name Last Name - The job'
54
        );
55
        $this->assertEquals($expected, $result);
56
    }
57
58
    public function testNoLanguage() {
59
        $this->interface = 'getDropDownLanguages';
60
61
        $this->arrayToCompare = array(
62
            $this->lang => $this->lang
63
        );
64
65
        $this->assertCVInterface('/../Resources/data/core.xml');
66
    }
67
68
    public function testSimpleHumanFileName() {
69
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../Resources/data/core.xml');
70
        $this->assertSame('core', $this->curriculumVitae->getHumanFileName());
71
    }
72
73
    public function testHumanFileNameWithExperience() {
74
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../../Resources/data/example.xml');
75
        $this->assertSame('First Name Last Name - Curriculum Vitae Title',
76
            $this->curriculumVitae->getHumanFileName()
77
        );
78
79
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../Resources/data/backbone.xml');
80
        $this->assertSame('First Name Last Name - The job',
81
            $this->curriculumVitae->getHumanFileName()
82
        );
83
    }
84
85
    public function testHumanFileNameWithJob() {
86
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../Resources/data/backbone.xml');
87
        $this->assertSame('First Name Last Name - The job', $this->curriculumVitae->getHumanFileName());
88
    }
89
90
    public function testHumanFileNameWithOnLyName(){
91
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../Resources/data/justIdentityMySelf.xml');
92
        $this->assertSame('First Name Last Name', $this->curriculumVitae->getHumanFileName());
93
    }
94
95
    public function testNullReturnWithNoDeclarationInCurriculumVitaeTag() {
96
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../Resources/data/core.xml');
97
        $this->assertNull($this->curriculumVitae->getIdentity());
98
    }
99
100
    public function testGetAnchorsWithNoLang() {
101
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../Resources/data/backbone.xml');
102
103
        $anchors = $this->curriculumVitae->getAnchors();
104
        if (is_array($anchors)) {
105
            $this->assertEquals(array('identity' => array(
106
                        'href' => 'identity',
107
                        'title' => 'identity'),
108
                      'followMe' => array(
109
                        'href' => 'followMe',
110
                        'title' => 'followMe'),
111
                      'experiences' => array(
112
                        'href' => 'experiences',
113
                        'title' => 'experiences'),
114
                      'skills' => array(
115
                        'href' => 'skills',
116
                        'title' => 'skills'),
117
                      'educations' => array(
118
                        'href' => 'educations',
119
                        'title' => 'educations'),
120
                      'languageSkills' => array(
121
                        'href' => 'languageSkills',
122
                        'title' => 'languageSkills'),
123
                      'miscellaneous' => array(
124
                        'href' => 'miscellaneous',
125
                        'title' => 'miscellaneous')
126
                ),
127
                $anchors
128
            );
129
        }
130
    }
131
132
    public function testGetIdentityWithEnglishLanguage() {
133
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../../Resources/data/example.xml');
134
135
        $identity = $this->curriculumVitae->getIdentity();
136
        // We remove the format birthday because of travisci and scrutinizer
137
        unset($identity['myself']['birthday']);
138
        $this->assertEquals(array(
139
            'myself' => array(
140
                'name' => 'First Name Last Name',
141
                'age' => 41,
142
                'nationality' => 'French Citizenship',
143
                'picture' => 'bundles/fabiencrassatcurriculumvitae/img/example.png'
144
            ),
145
            'address' => array(
146
                'street' => 'Street',
147
                'postalcode' => 'PostalCode',
148
                'city' => 'City',
149
                'country' => 'Country',
150
                'googlemap' => 'http://maps.google.com'
151
            ),
152
            'contact' => array(
153
                'mobile' => 'Telephone',
154
                'email' => 'email_arobase_site_dot_com'
155
            ),
156
            'social' => array(
157
                'drivelicences' => 'French driving licence'
158
            )
159
        ), $identity);
160
    }
161
162
    public function testGetIdentityWithFrenchLanguage() {
163
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../../Resources/data/example.xml', 'fr');
164
165
        $identity = $this->curriculumVitae->getIdentity();
166
        // We remove the format birthday because of travisci and scrutinizer
167
        unset($identity['myself']['birthday']);
168
        $this->assertEquals(array(
169
            'myself' => array(
170
                'name' => 'First Name Last Name',
171
                'birthplace' => 'Paris',
172
                'picture' => 'bundles/fabiencrassatcurriculumvitae/img/example.png'
173
            ),
174
            'address' => array(
175
                'street' => 'Street',
176
                'postalcode' => 'PostalCode',
177
                'city' => 'City',
178
                'country' => 'Country',
179
                'googlemap' => 'http://maps.google.com'
180
            ),
181
            'contact' => array(
182
                'mobile' => 'Telephone',
183
                'email' => 'email_arobase_site_dot_com'
184
            ),
185
            'social' => array(
186
                'marital' => 'Célibataire',
187
                'military' => 'Dégagé des obligations militaires',
188
                'drivelicences' => 'Titulaire du permis B'
189
            )
190
        ), $identity);
191
    }
192
193
    public function testGetDropDownLanguages() {
194
        $this->interface      = 'getDropDownLanguages';
195
        $this->arrayToCompare = array(
196
            'en' => 'English',
197
            'fr' => 'Français',
198
            'es' => 'español'
199
        );
200
201
        $this->assertCVInterface();
202
    }
203
204
    public function testGetFollowMe() {
205
        $this->interface      = 'getFollowMe';
206
        $this->arrayToCompare = array(
207
            'linkedin' => array(
208
                'title' => 'Linked In',
209
                'url'   => 'http://www.linkedin.com',
210
                'icon'  => 'bundles/fabiencrassatcurriculumvitae/img/linkedin.png'
211
            ),
212
            'viadeo' => array(
213
                'title' => 'Viadeo',
214
                'url'   => 'http://www.viadeo.com',
215
                'icon'  => 'bundles/fabiencrassatcurriculumvitae/img/viadeo.png'
216
            ),
217
            'monster' => array(
218
                'title' => 'Monster',
219
                'url'   => 'http://beknown.com',
220
                'icon'  => 'bundles/fabiencrassatcurriculumvitae/img/monster.png'
221
            ),
222
            'twitter' => array(
223
                'title' => 'Twitter',
224
                'url'   => 'https://twitter.com',
225
                'icon'  => 'bundles/fabiencrassatcurriculumvitae/img/twitter.png'
226
            ),
227
            'googleplus' => array(
228
                'title' => 'Google+',
229
                'url'   => 'https://plus.google.com',
230
                'icon'  => 'bundles/fabiencrassatcurriculumvitae/img/googleplus.png'
231
            ),
232
            'facebook' => array(
233
                'title' => 'Facebook',
234
                'url'   => 'https://www.facebook.com',
235
                'icon'  => 'bundles/fabiencrassatcurriculumvitae/img/facebook.png'
236
            ),
237
            'scrum' => array(
238
                'title' => 'Scrum',
239
                'url'   => 'http://www.scrumalliance.org',
240
                'icon'  => 'bundles/fabiencrassatcurriculumvitae/img/scrum-alliance.png'
241
            )
242
        );
243
244
        $this->assertCVInterface();
245
246
        $this->lang = 'fr';
247
        $this->assertCVInterface();
248
    }
249
250
    public function testGetLookingFor() {
251
        $this->interface = 'getLookingFor';
252
253
        $this->arrayToCompare = array(
254
            'experience'   => 'Curriculum Vitae Title',
255
            'presentation' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
256
            .' Aenean eu lectus facilisis, posuere leo laoreet, dignissim ligula. Praesent'
257
            .' ultricies dignissim diam vitae dictum. Donec sed nisi tortor. Proin tempus'
258
            .' scelerisque lectus, sit amet convallis mi semper a. Integer blandit a ligula'
259
            .' a volutpat. Ut dolor eros, interdum quis ante ac, tempus commodo odio. Suspendisse'
260
            .' ut nisi purus. Mauris vestibulum nibh sit amet turpis consequat pharetra. Duis at'
261
            .' adipiscing risus. Vivamus vitae orci ac felis porta euismod. Fusce sit amet metus'
262
            .' sem. Maecenas suscipit tincidunt ante, sed feugiat odio eleifend eu. Sed eu'
263
            .' ultricies ipsum. In cursus tincidunt elit a gravida. Nam eu aliquet leo. Maecenas'
264
            .' nibh leo, eleifend fermentum neque sit amet, viverra consequat lorem.',
265
        );
266
        $this->assertCVInterface();
267
268
        $this->lang           = 'fr';
269
        $this->arrayToCompare = array(
270
            'experience'   => 'Titre du curriculum vitae',
271
            'presentation' => 'Mauris rutrum justo ac bibendum ultrices. Mauris a dolor a diam'
272
            .' tempus ornare vel non urna. Donec a dui vel nunc ultrices porta non vitae felis.'
273
            .' Ut blandit ullamcorper orci. Quisque quis justo vitae nisl auctor laoreet non eget'
274
            .' mauris. Sed volutpat enim est, vitae vulputate nibh laoreet gravida. Duis nec'
275
            .' tincidunt ante. Nullam metus turpis, accumsan nec laoreet et, consectetur et'
276
            .' ligula. Curabitur convallis feugiat lorem, sit amet tincidunt arcu sollicitudin'
277
            .' vel. Aliquam erat volutpat. In odio elit, accumsan in facilisis at, ultricies'
278
            .' quis justo.',
279
        );
280
        $this->assertCVInterface();
281
    }
282
283
    public function testGetExperiences() {
284
        $this->interface = 'getExperiences';
285
286
        $this->arrayToCompare = array(
287
            'FirstExperience' => array(
288
                'date' => 'Jan 2007 - Present',
289
                'job' => 'My current job',
290
                'society' => array(
291
                    'name' => 'My Company',
292
                    'address' => 'the address of the company',
293
                    'siteurl' => 'http://www.MyCompany.com'),
294
                'missions' => array(
295
                    'item' => array(
296
                        0 => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
297
                        1 => 'Suspendisse nec mauris eu orci dapibus mollis ac ac mi.'))),
298
            'SecondExperience' => array(
299
                'collapse' => 'false',
300
                'date' => 'Sept - Dec 2006',
301
                'job' => 'My previous job',
302
                'society' => array(
303
                    'name' => 'My Other Company',
304
                    'address' => 'the address of the company',
305
                    'siteurl' => 'http://www.MyOtherCompany.com')),
306
            'ThirdExperience' => array(
307
                'date' => 'Summer 2006',
308
                'job' => 'A summer job',
309
                'society' => array(
310
                    'name' => 'A company wihtout site',
311
                    'address' => 'the address of the company'),
312
                'missions' => array(
313
                    'item' => array(
314
                        0 => 'Suspendisse et arcu eget est feugiat elementum.'))),
315
            'FourthExperience' => array(
316
                'collapse' => 'true',
317
                'date' => 'Before 2006',
318
                'job' => 'The job of my life',
319
                'society' => 'A society with a name per language',
320
                'missions' => array(
321
                    'item' => array(
322
                        0 => 'Suspendisse et arcu eget est feugiat elementum.')))
323
        );
324
        $this->assertCVInterface();
325
326
        $this->lang           = 'fr';
327
        $this->arrayToCompare = array(
328
            'FirstExperience' => array(
329
                'date' => 'Jan. 2007 - Aujourd\'hui',
330
                'job' => 'Mon poste actuel',
331
                'society' => array(
332
                    'name' => 'My Company',
333
                    'address' => 'the address of the company',
334
                    'siteurl' => 'http://www.MyCompany.com'),
335
                'missions' => array(
336
                    'item' => array(
337
                        0 => 'Donec gravida enim viverra tempor dignissim.',
338
                        1 => 'Sed a eros at mauris placerat adipiscing.'))),
339
            'SecondExperience' => array(
340
                'collapse' => 'false',
341
                'date' => 'Sept - Dec 2006',
342
                'job' => 'Mon poste précédent',
343
                'society' => array(
344
                    'name' => 'Mon autre compagnie',
345
                    'address' => 'l\'adresse de la compagnie',
346
                    'siteurl' => 'http://www.MyOtherCompany.com')),
347
            'ThirdExperience' => array(
348
                'date' => 'Summer 2006',
349
                'job' => 'Un travail d\'été',
350
                'society' => array(
351
                    'name' => 'Une compagnie sans site',
352
                    'address' => 'l\'adresse de la compagnie'),
353
                'missions' => array(
354
                    'item' => array(
355
                        0 => 'Suspendisse et arcu eget est feugiat elementum.'))),
356
            'FourthExperience' => array(
357
                'collapse' => 'true',
358
                'date' => 'Before 2006',
359
                'job' => 'Le job de ma vie',
360
                'society' => 'Une société avec un nom par langue',
361
                'missions' => array(
362
                    'item' => array(
363
                        0 => 'Suspendisse et arcu eget est feugiat elementum.')))
364
        );
365
        $this->assertCVInterface();
366
    }
367
368
    public function testGetSkills() {
369
        $this->interface = 'getSkills';
370
371
        $this->arrayToCompare = array(
372
            'Functional' => array(
373
                'title' => 'Skills',
374
                'lines' => array(
375
                    'success' => array(
376
                        'percentage' => 90,
377
                        'class' => 'success',
378
                        'striped' => 'true',
379
                        'label' => 'Increasing Skills',
380
                    ),
381
                    'otherSucess' => array(
382
                        'percentage' => 90,
383
                        'class' => 'success',
384
                        'label' => 'success',
385
                    ),
386
                    'info' => array(
387
                        'percentage' => 40,
388
                        'class' => 'info',
389
                        'striped' => 'false',
390
                        'label' => 'info',
391
                    ),
392
                    'warning' => array(
393
                        'percentage' => 20,
394
                        'class' => 'warning',
395
                        'label' => 'warning',
396
                    ),
397
                    'danger' => array(
398
                        'percentage' => 10,
399
                        'class' => 'danger',
400
                        'label' => 'danger',
401
                    ),
402
                    'noClass' => array(
403
                        'percentage' => 5,
404
                        'label' => 'noClass',
405
                    ),
406
                    'nothing' => array(
407
                        'label' => 'nothing',
408
                    )
409
                )
410
            ),
411
            'OtherSkill' => array(
412
                'title' => 'One other',
413
                'lines' => array(
414
                    'success' => array(
415
                        'percentage' => 90,
416
                        'class' => 'success',
417
                        'striped' => 'false',
418
                        'label' => 'Skills List',
419
                    ),
420
                    'info' => array(
421
                        'percentage' => 40,
422
                        'class' => 'info',
423
                        'striped' => 'false',
424
                        'label' => 'Label',
425
                    ),
426
                    'warning' => array(
427
                        'percentage' => 20,
428
                        'class' => 'warning',
429
                        'striped' => 'false',
430
                        'label' => 'Label',
431
                    ),
432
                    'danger' => array(
433
                        'percentage' => 10,
434
                        'class' => 'danger',
435
                        'striped' => 'true',
436
                        'label' => 'Label',
437
                    )
438
                )
439
            )
440
        );
441
        $this->assertCVInterface();
442
443
        $this->lang = 'fr';
444
        // Only set the french labels
445
        $arrayToChange                                            = $this->arrayToCompare;
446
        $arrayToChange['Functional']['title']                     = 'Compétences';
447
        $arrayToChange['Functional']['lines']['success']['label'] = 'Compétences grandissantes';
448
        $arrayToChange['OtherSkill']['title']                     = 'Une autre';
449
        $arrayToChange['OtherSkill']['lines']['success']['label'] = 'Liste de Compétences';
450
451
        $this->arrayToCompare = $arrayToChange;
452
        $this->assertCVInterface();
453
    }
454
455
    public function testGetEducations() {
456
        $this->interface = 'getEducations';
457
458
        $this->arrayToCompare = array(
459
            'University' => array(
460
                'date' => '2002 - 2005',
461
                'education' => 'My diploma in my university',
462
                'descriptions' => array('item' => array(
463
                    0 => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc in'
464
                        .' auctor ipsum. Nullam venenatis sem.'
465
                ))
466
            ),
467
            'HighSchool' => array(
468
                'collapse' => 'false',
469
                'date' => 'June 2002',
470
                'education' => 'My diploma in my high school',
471
                'descriptions' => array('item' => array(
472
                    0 => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris elit'
473
                        .' dui, faucibus non laoreet luctus, dignissim at lectus. Quisque dignissim'
474
                        .' imperdiet consectetur. Praesent scelerisque neque.',
475
                    1 => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pretium'
476
                        .' varius est sit amet consectetur. Suspendisse cursus dapibus egestas.'
477
                        .' Ut id augue quis mi scelerisque.'
478
                ))
479
            ),
480
            'FirstSchool' => array(
481
                'collapse' => 'true',
482
                'date' => 'June 2000',
483
                'education' => 'My diploma in my first school'
484
            )
485
        );
486
        $this->assertCVInterface();
487
488
        $this->lang           = 'fr';
489
        $this->arrayToCompare = array(
490
            'University' => array(
491
                'date' => '2002 - 2005',
492
                'education' => 'Mon diplôme dans mon université',
493
                'descriptions' => array('item' => array(
494
                    0 => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris elit dui,'
495
                        .' faucibus non laoreet luctus, dignissim at lectus. Quisque dignissim'
496
                        .' imperdiet consectetur. Praesent scelerisque neque.',
497
                    1 => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pretium'
498
                        .' varius est sit amet consectetur. Suspendisse cursus dapibus egestas.'
499
                        .' Ut id augue quis mi scelerisque.'
500
                ))
501
            ),
502
            'HighSchool' => array(
503
                'collapse' => 'false',
504
                'date' => 'Juin 2002',
505
                'education' => 'Mon diplôme dans mon lycée',
506
                'descriptions' => array('item' => array(
507
                    0 => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc in auctor'
508
                        .' ipsum. Nullam venenatis sem.'
509
                ))
510
            ),
511
            'FirstSchool' => array(
512
                'collapse' => 'true',
513
                'date' => 'Juin 2000',
514
                'education' => 'Mon diplôme dans mon collège'
515
            )
516
        );
517
        $this->assertCVInterface();
518
    }
519
520
    public function testGetLanguageSkills() {
521
        $this->interface = 'getLanguageSkills';
522
523
        $this->arrayToCompare = array(
524
            'French' => array(
525
                'title' => 'French',
526
                'description' => 'Level of the skill.',
527
                'icon' => 'bundles/fabiencrassatcurriculumvitae/img/Flag-of-France.png'
528
            ),
529
            'English' => array(
530
                'title' => 'English',
531
                'description' => 'Level of the skill.',
532
                'icon' => 'bundles/fabiencrassatcurriculumvitae/img/Flag-of-United-Kingdom.png'
533
            )
534
        );
535
        $this->assertCVInterface();
536
537
        $this->lang           = 'fr';
538
        $this->arrayToCompare = array(
539
            'French' => array(
540
                'title' => 'Français',
541
                'description' => 'Niveau',
542
                'icon' => 'bundles/fabiencrassatcurriculumvitae/img/Flag-of-France.png'
543
            ),
544
            'English' => array(
545
                'title' => 'Anglais',
546
                'description' => 'Niveau',
547
                'icon' => 'bundles/fabiencrassatcurriculumvitae/img/Flag-of-United-Kingdom.png'
548
            )
549
        );
550
        $this->assertCVInterface();
551
    }
552
553
    public function testGetMiscellaneous() {
554
        $this->interface = 'getMiscellaneous';
555
556
        $this->arrayToCompare = array(
557
            'Practical' => array(
558
                'title' => 'Practices',
559
                'miscellaneous' => 'My practices'
560
            )
561
        );
562
        $this->assertCVInterface();
563
564
        $this->lang           = 'fr';
565
        $this->arrayToCompare = array(
566
            'Practical' => array(
567
                'title' => 'Pratiques',
568
                'miscellaneous' => 'Mes pratiques',
569
                'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
570
                        .' Curabitur nec auctor nisl, eu fringilla nisi. Morbi scelerisque,'
571
                        .' est vitae mattis faucibus, felis sapien lobortis augue.'
572
            )
573
        );
574
        $this->assertCVInterface();
575
    }
576
577
    private function assertCVInterface($pathToFile = '/../../Resources/data/example.xml') {
578
        $this->curriculumVitae = new CurriculumVitae(__DIR__.$pathToFile, $this->lang);
579
        $this->assertEquals($this->arrayToCompare, $this->curriculumVitae->{$this->interface}());
580
    }
581
582
    /**
583
     * @expectedException InvalidArgumentException
584
     */
585
    public function testInvalidArgumentExceptionWithBadCurriculumVitaeFile() {
586
        $this->curriculumVitae = new CurriculumVitae('abd file');
587
    }
588
589
    /**
590
     * @expectedException InvalidArgumentException
591
     */
592
    public function testInvalidArgumentExceptionWithNoValidXMLFile() {
593
        $this->curriculumVitae = new CurriculumVitae( __DIR__.'/../Resources/data/empty.xml');
594
        $this->curriculumVitae->getDropDownLanguages();
595
    }
596
597
    /**
598
     * @expectedException InvalidArgumentException
599
     */
600
    public function testInvalidArgumentExceptionWithFatalErrorXMLFile() {
601
        $this->curriculumVitae = new CurriculumVitae(__DIR__.'/../Resources/data/fatalerror.xml');
602
        $this->curriculumVitae->getDropDownLanguages();
603
    }
604
}
605