File: 1010_phpunit-8.x%2B9.x.patch

package info (click to toggle)
php-horde-kolab-format 2.0.9-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,200 kB
  • sloc: php: 5,857; xml: 1,070; sh: 14; makefile: 2
file content (854 lines) | stat: -rw-r--r-- 28,620 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
Description: Adapt to PHPUnit 8.x and 9.x API.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/TestCase.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/TestCase.php
@@ -24,7 +24,7 @@
  * @link       http://www.horde.org/libraries/Horde_Kolab_Format
  */
 class Horde_Kolab_Format_TestCase
-extends PHPUnit_Framework_TestCase
+extends Horde_Test_Case
 {
     private $_factory;
 
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/DateTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/DateTest.php
@@ -28,15 +28,15 @@
  * @link       http://www.horde.org/libraries/Horde_Kolab_Format
  */
 class Horde_Kolab_Format_Unit_DateTest
-extends PHPUnit_Framework_TestCase
+extends Horde_Test_Case
 {
-    public function setUp()
+    public function setUp(): void
     {
         $this->_oldTimezone = date_default_timezone_get();
         date_default_timezone_set('Europe/Berlin');
     }
 
-    public function tearDown()
+    public function tearDown(): void
     {
         date_default_timezone_set($this->_oldTimezone);
     }
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Exception/MissingUidTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Exception/MissingUidTest.php
@@ -28,7 +28,7 @@
  * @link       http://www.horde.org/libraries/Horde_Kolab_Format
  */
 class Horde_Kolab_Format_Unit_Exception_MissingUidTest
-extends PHPUnit_Framework_TestCase
+extends Horde_Test_Case
 {
     public function testMissingUidTest()
     {
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Exception/MissingValueTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Exception/MissingValueTest.php
@@ -28,7 +28,7 @@
  * @link       http://www.horde.org/libraries/Horde_Kolab_Format
  */
 class Horde_Kolab_Format_Unit_Exception_MissingValueTest
-extends PHPUnit_Framework_TestCase
+extends Horde_Test_Case
 {
     public function testMissingValueTest()
     {
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Exception/ParseErrorTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Exception/ParseErrorTest.php
@@ -28,7 +28,7 @@
  * @link       http://www.horde.org/libraries/Horde_Kolab_Format
  */
 class Horde_Kolab_Format_Unit_Exception_ParseErrorTest
-extends PHPUnit_Framework_TestCase
+extends Horde_Test_Case
 {
     public function testParseError()
     {
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/FactoryTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/FactoryTest.php
@@ -28,7 +28,7 @@
  * @link       http://www.horde.org/libraries/Horde_Kolab_Format
  */
 class Horde_Kolab_Format_Unit_FactoryTest
-extends PHPUnit_Framework_TestCase
+extends Horde_Test_Case
 {
     public function testFactory()
     {
@@ -84,20 +84,16 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testFactoryException()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $factory = new Horde_Kolab_Format_Factory();
         $factory->create('UNKNOWN', 'contact');
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testUnknownFormatException()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $factory = new Horde_Kolab_Format_Factory();
         $factory->create('Exception', 'InvalidRoot');
     }
@@ -183,11 +179,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testTypeMissing()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $factory = new Horde_Kolab_Format_Factory();
         $factory->createXmlType('Horde_Kolab_Format_Stub_Types_NOSUCH');
     }
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/EnvelopeTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/EnvelopeTest.php
@@ -28,11 +28,11 @@
  * @link       http://www.horde.org/libraries/Horde_Kolab_Format
  */
 class Horde_Kolab_Format_Unit_Xml_EnvelopeTest
-extends PHPUnit_Framework_TestCase
+extends Horde_Test_Case
 {
     public function testSave()
     {
-        $this->assertContains(
+        $this->assertStringContainsString(
             '<uid>test</uid>',
             $this->_getEnvelope()->save(
                 array('uid' => 'test', 'type' => 'test')
@@ -40,12 +40,10 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testMissingType()
     {
-        $this->assertContains(
+        $this->expectException('Horde_Kolab_Format_Exception');
+        $this->assertStringContainsString(
             '<uid>test</uid>',
             $this->_getEnvelope()->save(array('uid' => 'test'))
         );
@@ -53,7 +51,7 @@
 
     public function testType()
     {
-        $this->assertContains(
+        $this->assertStringContainsString(
             '<test version="1.0">',
             $this->_getEnvelope()->save(
                 array('uid' => 'test', 'type' => 'test')
@@ -63,7 +61,7 @@
 
     public function testXml()
     {
-        $this->assertContains(
+        $this->assertStringContainsString(
             '<testelement/>',
             $this->_getEnvelope()->save(
                 array('uid' => 'test', 'type' => 'test', 'xml' => '<testelement/>')
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/ParserTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/ParserTest.php
@@ -28,7 +28,7 @@
  * @link       http://www.horde.org/libraries/Horde_Kolab_Format
  */
 class Horde_Kolab_Format_Unit_Xml_ParserTest
-extends PHPUnit_Framework_TestCase
+extends Horde_Test_Case
 {
     public function testParseString()
     {
@@ -41,11 +41,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_ParseError
-     */
     public function testParseMissingChild()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_ParseError');
         $parser = new Horde_Kolab_Format_Xml_Parser(
             new DOMDocument('1.0', 'UTF-8')
         );
@@ -82,11 +80,9 @@
         $this->assertInstanceOf('DOMDocument', $parser->parse($data));
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_ParseError
-     */
     public function testParseUmlautWrongEncoding()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_ParseError');
         $data = fopen('php://temp', 'r+');
         fwrite($data, "<?xml version=\"1.0\" encoding=\"windows-1252\"?>\n<kolab><รค/></kolab>");
         $parser = new Horde_Kolab_Format_Xml_Parser(
@@ -95,11 +91,9 @@
         $parser->parse($data);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_ParseError
-     */
     public function testSecondParseAttemptBroken()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_ParseError');
         $parser = new Horde_Kolab_Format_Xml_Parser(
             new DOMDocument('1.0', 'UTF-8')
         );
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/DateTimeTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/DateTimeTest.php
@@ -30,7 +30,7 @@
 class Horde_Kolab_Format_Unit_Xml_Type_DateTimeTest
 extends Horde_Kolab_Format_TestCase
 {
-    public function setUp()
+    public function setUp(): void
     {
         date_default_timezone_set('Europe/Berlin');
     }
@@ -68,11 +68,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testLoadEmptyDateTime()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0"><datetime></datetime></kolab>'
@@ -96,11 +94,9 @@
         $this->assertInstanceOf('DateTime', $attributes['datetime']['date']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testLoadNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $this->loadWithClass('Horde_Kolab_Format_Stub_DateTimeNotEmpty');
     }
 
@@ -176,11 +172,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testSaveNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $this->saveWithClass('Horde_Kolab_Format_Stub_DateTimeNotEmpty');
     }
 
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/XmlTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/XmlTest.php
@@ -28,13 +28,11 @@
  * @link       http://www.horde.org/libraries/Horde_Kolab_Format
  */
 class Horde_Kolab_Format_Unit_XmlTest
-extends PHPUnit_Framework_TestCase
+extends Horde_Test_Case
 {
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingUid
-     */
     public function testMissingUid()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingUid');
         $factory = new Horde_Kolab_Format_Factory();
         $note = $factory->create('Xml', 'Note');
         $note->save(array());
@@ -44,7 +42,7 @@
     {
         $factory = new Horde_Kolab_Format_Factory();
         $note = $factory->create('Xml', 'Note');
-        $this->assertContains(
+        $this->assertStringContainsString(
             '<note version="1.0">',
             $note->save(array('uid' => 'test'))
         );
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Integration/XmlTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Integration/XmlTest.php
@@ -32,7 +32,7 @@
 {
     public function testBasic()
     {
-        $this->assertContains(
+        $this->assertStringContainsStringIgnoringCase(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0">
   <body></body>
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Decorator/MemoryTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Decorator/MemoryTest.php
@@ -32,6 +32,7 @@
 {
     public function testConstructor()
     {
+        $this->expectNotToPerformAssertions();
         $this->getFactory()->create(
             'XML', 'contact', array('memlog' => true)
         );
@@ -42,7 +43,7 @@
         $timed = $this->_getMemoryMock();
         $a = '';
         $timed->load($a);
-        $this->assertContains(
+        $this->assertStringContainsString(
             'Kolab Format data parsing complete. Memory usage:',
             array_pop($this->logger->log)
         );
@@ -53,7 +54,7 @@
         $timed = $this->_getMemoryMock();
         $a = array();
         $timed->save($a);
-        $this->assertContains(
+        $this->assertStringContainsString(
             'Kolab Format data generation complete. Memory usage:',
             array_pop($this->logger->log)
         );
@@ -63,7 +64,8 @@
     {
         $this->logger = new Horde_Kolab_Format_Stub_Log();
         return new Horde_Kolab_Format_Decorator_Memory(
-            $this->getMock('Horde_Kolab_Format'),
+            $this->getMockBuilder('Horde_Kolab_Format')
+                 ->getMock(),
             new Horde_Support_Memory(),
             $this->logger
         );
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Decorator/TimedTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Decorator/TimedTest.php
@@ -32,6 +32,7 @@
 {
     public function testConstructor()
     {
+        $this->expectNotToPerformAssertions();
         $this->getFactory()->create(
             'XML', 'contact', array('timelog' => true)
         );
@@ -42,8 +43,7 @@
         $timed = $this->_getTimedMock();
         $a = '';
         $timed->load($a);
-        $this->assertInternalType(
-            'float',
+        $this->assertIsFloat(
             $timed->timeSpent()
         );
     }
@@ -65,7 +65,7 @@
         $timed = $this->_getTimedMock();
         $a = '';
         $timed->load($a);
-        $this->assertContains(
+        $this->assertStringContainsString(
             'Kolab Format data parsing complete. Time spent:',
             array_pop($this->logger->log)
         );
@@ -76,7 +76,7 @@
         $timed = $this->_getTimedMock();
         $a = array();
         $timed->save($a);
-        $this->assertContains(
+        $this->assertStringContainsString(
             'Kolab Format data generation complete. Time spent:',
             array_pop($this->logger->log)
         );
@@ -84,8 +84,10 @@
 
     public function testNoLog()
     {
+        $this->expectNotToPerformAssertions();
         $timed = new Horde_Kolab_Format_Decorator_Timed(
-            $this->getMock('Horde_Kolab_Format'),
+            $this->getMockBuilder('Horde_Kolab_Format')
+                 ->getMock(),
             new Horde_Support_Timer(),
             true
         );
@@ -97,7 +99,8 @@
     {
         $this->logger = new Horde_Kolab_Format_Stub_Log();
         return new Horde_Kolab_Format_Decorator_Timed(
-            $this->getMock('Horde_Kolab_Format'),
+            $this->getMockBuilder('Horde_Kolab_Format')
+                 ->getMock(),
             new Horde_Support_Timer(),
             $this->logger
         );
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/BooleanTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/BooleanTest.php
@@ -74,11 +74,9 @@
         $this->assertTrue($attributes['boolean']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testLoadNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $this->loadWithClass('Horde_Kolab_Format_Stub_BooleanNotEmpty');
     }
 
@@ -143,19 +141,15 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testSaveNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $this->saveWithClass('Horde_Kolab_Format_Stub_BooleanNotEmpty');
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testSaveInvalidBoolean()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $this->saveWithClass(
             'Horde_Kolab_Format_Stub_IntegerNotEmpty',
             null,
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/ColorTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/ColorTest.php
@@ -75,11 +75,9 @@
         $this->assertEquals('#abcdef', $attributes['color']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testLoadInvalid()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0"><color>#09aFAfD</color>c</kolab>',
@@ -141,11 +139,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testSaveNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         list($helper, $root_node, $type) = $this->getXmlType(
             'Horde_Kolab_Format_Stub_ColorNotEmpty',
             '<?xml version="1.0" encoding="UTF-8"?>
@@ -158,11 +154,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testSaveInvalidColor()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $this->saveToXml(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0"/>',
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/CompositeTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/CompositeTest.php
@@ -60,11 +60,9 @@
         $this->assertEquals(array('X' => 'Y'), $attributes['composite']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testLoadNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0"/>',
@@ -152,11 +150,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testSaveNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $this->saveToXml(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0"/>',
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/CreationDateTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/CreationDateTest.php
@@ -53,11 +53,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testLoadInvalidCreationDateValue()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0" a="b"><creation-date>2011A-06-28T08:42:11Z</creation-date>c</kolab>',
@@ -135,11 +133,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testSaveFailsOverwritingOldValue()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $this->saveToXml(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0" a="b"><creation-date type="strange"><b/>1970-01-01T00:00:00Z<a/></creation-date>c</kolab>',
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/IntegerTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/IntegerTest.php
@@ -39,11 +39,9 @@
         $this->assertSame(1, $attributes['integer']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testLoadStrangeInteger()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0" a="b"><integer type="strange"><b/>false<a/></integer>c</kolab>'
@@ -67,11 +65,9 @@
         $this->assertSame(10, $attributes['integer']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testLoadNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $this->loadWithClass('Horde_Kolab_Format_Stub_IntegerNotEmpty');
     }
 
@@ -123,19 +119,15 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testSaveNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $this->saveWithClass('Horde_Kolab_Format_Stub_IntegerNotEmpty');
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testSaveInvalidInteger()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $this->saveWithClass(
             'Horde_Kolab_Format_Stub_IntegerNotEmpty',
             null,
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/MultipleTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/MultipleTest.php
@@ -72,11 +72,9 @@
         $this->assertEquals(array('X'), $attributes['string']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testLoadNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $params = array();
         list($helper, $root_node, $type) = $this->getXmlType(
             'Horde_Kolab_Format_Stub_MultipleNotEmpty',
@@ -161,11 +159,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testSaveNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $params = array();
         list($helper, $root_node, $type) = $this->getXmlType(
             'Horde_Kolab_Format_Stub_MultipleNotEmpty'
@@ -175,11 +171,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testSaveInvalidMultiple()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $params = array('relaxed' => false);
         list($helper, $root_node, $type) = $this->getXmlType(
             'Horde_Kolab_Format_Xml_Type_Multiple_Boolean'
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/PrefsApplicationTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/PrefsApplicationTest.php
@@ -60,11 +60,9 @@
         $this->assertEquals('STRANGE', $attributes['application']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testLoadEmptyApplication()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0"><application></application></kolab>',
@@ -72,11 +70,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testLoadMissingApplication()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0"/>',
@@ -84,11 +80,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testLoadNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0"/>',
@@ -150,11 +144,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testSaveNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $this->saveToXml(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0"/>',
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/RecurrenceTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/RecurrenceTest.php
@@ -30,11 +30,9 @@
 class Horde_Kolab_Format_Unit_Xml_Type_RecurrenceTest
 extends Horde_Kolab_Format_TestCase
 {
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testEmptyInterval()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0" a="b"><recurrence>TEST</recurrence>c</kolab>'
@@ -42,11 +40,9 @@
         $this->assertEquals(array(), $attributes['recurrence']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_ParseError
-     */
     public function testIntervalBelowZero()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_ParseError');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0" a="b"><recurrence><interval>-1</interval>TEST</recurrence>c</kolab>'
@@ -54,22 +50,18 @@
         $this->assertEquals(array(), $attributes['recurrence']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_ParseError
-     */
     public function testMissingCycle()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_ParseError');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0" a="b"><recurrence><interval>2</interval>TEST</recurrence>c</kolab>'
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_ParseError
-     */
     public function testMissingWeekday()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_ParseError');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0" a="b"><recurrence cycle="weekly"><interval>1</interval>TEST</recurrence>c</kolab>'
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/RootTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/RootTest.php
@@ -39,11 +39,9 @@
         $this->assertEquals('A', $attributes['uid']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_InvalidRoot
-     */
     public function testMissingRootNode()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_InvalidRoot');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?><test/>'
         );
@@ -68,11 +66,9 @@
         $this->assertEquals('1', $attributes['_api-version']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_InvalidRoot
-     */
     public function testLoadHigherVersion()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_InvalidRoot');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="2.0" a="b">c</kolab>'
@@ -139,11 +135,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_InvalidRoot
-     */
     public function testOverwriteHigherVersion()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_InvalidRoot');
         $this->saveToXml(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="2.0" a="b">c</kolab>',
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/StringTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/StringTest.php
@@ -72,11 +72,9 @@
         $this->assertEquals('DEFAULT', $attributes['string']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testLoadNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $this->loadWithClass('Horde_Kolab_Format_Stub_StringNotEmpty');
     }
 
@@ -130,11 +128,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingValue
-     */
     public function testSaveNotEmpty()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingValue');
         $this->saveWithClass('Horde_Kolab_Format_Stub_StringNotEmpty');
     }
 
--- a/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/UidTest.php
+++ b/Horde_Kolab_Format-2.0.9/test/Horde/Kolab/Format/Unit/Xml/Type/UidTest.php
@@ -49,22 +49,18 @@
         $this->assertEquals('STRANGE', $attributes['uid']);
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingUid
-     */
     public function testLoadMissingUidText()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingUid');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0" a="b"><uid></uid>c</kolab>'
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingUid
-     */
     public function testLoadMissingUid()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingUid');
         $attributes = $this->load(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0" a="b">c</kolab>'
@@ -105,11 +101,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception_MissingUid
-     */
     public function testSaveMissingData()
     {
+        $this->expectException('Horde_Kolab_Format_Exception_MissingUid');
         $this->saveToXml();
     }
 
@@ -155,11 +149,9 @@
         );
     }
 
-    /**
-     * @expectedException Horde_Kolab_Format_Exception
-     */
     public function testOverwriteOldUid()
     {
+        $this->expectException('Horde_Kolab_Format_Exception');
         $this->saveToXml(
             '<?xml version="1.0" encoding="UTF-8"?>
 <kolab version="1.0" a="b"><uid>OLD</uid>c</kolab>',