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 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Fri, 27 Dec 2024 22:50:36 +0100
Subject: Rename AbstractMatcherTest as AbstractMatcherTestCase
Bug-Debian: https://bugs.debian.org/1070553
---
tests/Hamcrest/AbstractMatcherTest.php | 68 ----------------------
tests/Hamcrest/AbstractMatcherTestCase.php | 68 ++++++++++++++++++++++
.../Array/IsArrayContainingInAnyOrderTest.php | 4 +-
.../Array/IsArrayContainingInOrderTest.php | 4 +-
tests/Hamcrest/Array/IsArrayContainingKeyTest.php | 4 +-
.../Array/IsArrayContainingKeyValuePairTest.php | 4 +-
tests/Hamcrest/Array/IsArrayContainingTest.php | 4 +-
tests/Hamcrest/Array/IsArrayTest.php | 4 +-
tests/Hamcrest/Array/IsArrayWithSizeTest.php | 4 +-
.../Hamcrest/Collection/IsEmptyTraversableTest.php | 4 +-
.../Collection/IsTraversableWithSizeTest.php | 2 +-
tests/Hamcrest/Core/AllOfTest.php | 2 +-
tests/Hamcrest/Core/AnyOfTest.php | 2 +-
tests/Hamcrest/Core/CombinableMatcherTest.php | 2 +-
tests/Hamcrest/Core/DescribedAsTest.php | 2 +-
tests/Hamcrest/Core/EveryTest.php | 2 +-
tests/Hamcrest/Core/HasToStringTest.php | 2 +-
tests/Hamcrest/Core/IsAnythingTest.php | 2 +-
tests/Hamcrest/Core/IsCollectionContainingTest.php | 2 +-
tests/Hamcrest/Core/IsEqualTest.php | 2 +-
tests/Hamcrest/Core/IsIdenticalTest.php | 2 +-
tests/Hamcrest/Core/IsInstanceOfTest.php | 2 +-
tests/Hamcrest/Core/IsNotTest.php | 2 +-
tests/Hamcrest/Core/IsNullTest.php | 2 +-
tests/Hamcrest/Core/IsSameTest.php | 2 +-
tests/Hamcrest/Core/IsTest.php | 2 +-
tests/Hamcrest/Core/IsTypeOfTest.php | 2 +-
tests/Hamcrest/Core/SetTest.php | 2 +-
tests/Hamcrest/FeatureMatcherTest.php | 2 +-
tests/Hamcrest/Number/IsCloseToTest.php | 2 +-
tests/Hamcrest/Number/OrderingComparisonTest.php | 2 +-
tests/Hamcrest/Text/IsEmptyStringTest.php | 2 +-
tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php | 2 +-
.../Text/IsEqualIgnoringWhiteSpaceTest.php | 2 +-
tests/Hamcrest/Text/MatchesPatternTest.php | 2 +-
.../Text/StringContainsIgnoringCaseTest.php | 2 +-
tests/Hamcrest/Text/StringContainsInOrderTest.php | 2 +-
tests/Hamcrest/Text/StringContainsTest.php | 2 +-
tests/Hamcrest/Text/StringEndsWithTest.php | 2 +-
tests/Hamcrest/Text/StringStartsWithTest.php | 2 +-
tests/Hamcrest/Type/IsArrayTest.php | 2 +-
tests/Hamcrest/Type/IsBooleanTest.php | 2 +-
tests/Hamcrest/Type/IsCallableTest.php | 2 +-
tests/Hamcrest/Type/IsDoubleTest.php | 2 +-
tests/Hamcrest/Type/IsIntegerTest.php | 2 +-
tests/Hamcrest/Type/IsNumericTest.php | 2 +-
tests/Hamcrest/Type/IsObjectTest.php | 2 +-
tests/Hamcrest/Type/IsResourceTest.php | 2 +-
tests/Hamcrest/Type/IsScalarTest.php | 2 +-
tests/Hamcrest/Type/IsStringTest.php | 2 +-
tests/Hamcrest/Xml/HasXPathTest.php | 2 +-
51 files changed, 125 insertions(+), 125 deletions(-)
delete mode 100644 tests/Hamcrest/AbstractMatcherTest.php
create mode 100644 tests/Hamcrest/AbstractMatcherTestCase.php
diff --git a/tests/Hamcrest/AbstractMatcherTest.php b/tests/Hamcrest/AbstractMatcherTest.php
deleted file mode 100644
index 8a1fb2a..0000000
--- a/tests/Hamcrest/AbstractMatcherTest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-namespace Hamcrest;
-
-use PHPUnit\Framework\TestCase;
-
-class UnknownType {
-}
-
-abstract class AbstractMatcherTest extends TestCase
-{
-
- const ARGUMENT_IGNORED = "ignored";
- const ANY_NON_NULL_ARGUMENT = "notnull";
-
- abstract protected function createMatcher();
-
- public function assertMatches(\Hamcrest\Matcher $matcher, $arg, $message)
- {
- $this->assertTrue($matcher->matches($arg), $message);
- }
-
- public function assertDoesNotMatch(\Hamcrest\Matcher $matcher, $arg, $message)
- {
- $this->assertFalse($matcher->matches($arg), $message);
- }
-
- public function assertDescription($expected, \Hamcrest\Matcher $matcher)
- {
- $description = new \Hamcrest\StringDescription();
- $description->appendDescriptionOf($matcher);
- $this->assertEquals($expected, (string) $description, 'Expected description');
- }
-
- public function assertMismatchDescription($expected, \Hamcrest\Matcher $matcher, $arg)
- {
- $description = new \Hamcrest\StringDescription();
- $this->assertFalse(
- $matcher->matches($arg),
- 'Precondtion: Matcher should not match item'
- );
- $matcher->describeMismatch($arg, $description);
- $this->assertEquals(
- $expected,
- (string) $description,
- 'Expected mismatch description'
- );
- }
-
- public function testIsNullSafe()
- {
- //Should not generate any notices
- $this->createMatcher()->matches(null);
- $this->createMatcher()->describeMismatch(
- null,
- new \Hamcrest\NullDescription()
- );
- }
-
- public function testCopesWithUnknownTypes()
- {
- //Should not generate any notices
- $this->createMatcher()->matches(new UnknownType());
- $this->createMatcher()->describeMismatch(
- new UnknownType(),
- new NullDescription()
- );
- }
-}
diff --git a/tests/Hamcrest/AbstractMatcherTestCase.php b/tests/Hamcrest/AbstractMatcherTestCase.php
new file mode 100644
index 0000000..17eff5f
--- /dev/null
+++ b/tests/Hamcrest/AbstractMatcherTestCase.php
@@ -0,0 +1,68 @@
+<?php
+namespace Hamcrest;
+
+use PHPUnit\Framework\TestCase;
+
+class UnknownType {
+}
+
+abstract class AbstractMatcherTestCase extends TestCase
+{
+
+ const ARGUMENT_IGNORED = "ignored";
+ const ANY_NON_NULL_ARGUMENT = "notnull";
+
+ abstract protected function createMatcher();
+
+ public function assertMatches(\Hamcrest\Matcher $matcher, $arg, $message)
+ {
+ $this->assertTrue($matcher->matches($arg), $message);
+ }
+
+ public function assertDoesNotMatch(\Hamcrest\Matcher $matcher, $arg, $message)
+ {
+ $this->assertFalse($matcher->matches($arg), $message);
+ }
+
+ public function assertDescription($expected, \Hamcrest\Matcher $matcher)
+ {
+ $description = new \Hamcrest\StringDescription();
+ $description->appendDescriptionOf($matcher);
+ $this->assertEquals($expected, (string) $description, 'Expected description');
+ }
+
+ public function assertMismatchDescription($expected, \Hamcrest\Matcher $matcher, $arg)
+ {
+ $description = new \Hamcrest\StringDescription();
+ $this->assertFalse(
+ $matcher->matches($arg),
+ 'Precondtion: Matcher should not match item'
+ );
+ $matcher->describeMismatch($arg, $description);
+ $this->assertEquals(
+ $expected,
+ (string) $description,
+ 'Expected mismatch description'
+ );
+ }
+
+ public function testIsNullSafe()
+ {
+ //Should not generate any notices
+ $this->createMatcher()->matches(null);
+ $this->createMatcher()->describeMismatch(
+ null,
+ new \Hamcrest\NullDescription()
+ );
+ }
+
+ public function testCopesWithUnknownTypes()
+ {
+ //Should not generate any notices
+ $this->createMatcher()->matches(new UnknownType());
+ $this->createMatcher()->describeMismatch(
+ new UnknownType(),
+ new NullDescription()
+ );
+ }
+}
diff --git a/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php b/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php
index 45d9f13..61b915b 100644
--- a/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php
+++ b/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php
@@ -1,9 +1,9 @@
<?php
namespace Hamcrest\Arrays;
-use Hamcrest\AbstractMatcherTest;
+use Hamcrest\AbstractMatcherTestCase;
-class IsArrayContainingInAnyOrderTest extends AbstractMatcherTest
+class IsArrayContainingInAnyOrderTest extends AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php b/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php
index a9e4e5b..657132b 100644
--- a/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php
+++ b/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php
@@ -1,9 +1,9 @@
<?php
namespace Hamcrest\Arrays;
-use Hamcrest\AbstractMatcherTest;
+use Hamcrest\AbstractMatcherTestCase;
-class IsArrayContainingInOrderTest extends AbstractMatcherTest
+class IsArrayContainingInOrderTest extends AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Array/IsArrayContainingKeyTest.php b/tests/Hamcrest/Array/IsArrayContainingKeyTest.php
index 31770d8..76b9dfd 100644
--- a/tests/Hamcrest/Array/IsArrayContainingKeyTest.php
+++ b/tests/Hamcrest/Array/IsArrayContainingKeyTest.php
@@ -1,9 +1,9 @@
<?php
namespace Hamcrest\Arrays;
-use Hamcrest\AbstractMatcherTest;
+use Hamcrest\AbstractMatcherTestCase;
-class IsArrayContainingKeyTest extends AbstractMatcherTest
+class IsArrayContainingKeyTest extends AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php b/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php
index a415f9f..c5590f6 100644
--- a/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php
+++ b/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php
@@ -1,9 +1,9 @@
<?php
namespace Hamcrest\Arrays;
-use Hamcrest\AbstractMatcherTest;
+use Hamcrest\AbstractMatcherTestCase;
-class IsArrayContainingKeyValuePairTest extends AbstractMatcherTest
+class IsArrayContainingKeyValuePairTest extends AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Array/IsArrayContainingTest.php b/tests/Hamcrest/Array/IsArrayContainingTest.php
index 8d5bd81..aa52e38 100644
--- a/tests/Hamcrest/Array/IsArrayContainingTest.php
+++ b/tests/Hamcrest/Array/IsArrayContainingTest.php
@@ -1,9 +1,9 @@
<?php
namespace Hamcrest\Arrays;
-use Hamcrest\AbstractMatcherTest;
+use Hamcrest\AbstractMatcherTestCase;
-class IsArrayContainingTest extends AbstractMatcherTest
+class IsArrayContainingTest extends AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Array/IsArrayTest.php b/tests/Hamcrest/Array/IsArrayTest.php
index e4db53e..d1d834c 100644
--- a/tests/Hamcrest/Array/IsArrayTest.php
+++ b/tests/Hamcrest/Array/IsArrayTest.php
@@ -1,9 +1,9 @@
<?php
namespace Hamcrest\Arrays;
-use Hamcrest\AbstractMatcherTest;
+use Hamcrest\AbstractMatcherTestCase;
-class IsArrayTest extends AbstractMatcherTest
+class IsArrayTest extends AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Array/IsArrayWithSizeTest.php b/tests/Hamcrest/Array/IsArrayWithSizeTest.php
index 8413c89..e5385be 100644
--- a/tests/Hamcrest/Array/IsArrayWithSizeTest.php
+++ b/tests/Hamcrest/Array/IsArrayWithSizeTest.php
@@ -1,9 +1,9 @@
<?php
namespace Hamcrest\Arrays;
-use Hamcrest\AbstractMatcherTest;
+use Hamcrest\AbstractMatcherTestCase;
-class IsArrayWithSizeTest extends AbstractMatcherTest
+class IsArrayWithSizeTest extends AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Collection/IsEmptyTraversableTest.php b/tests/Hamcrest/Collection/IsEmptyTraversableTest.php
index 2f15fb4..c288f36 100644
--- a/tests/Hamcrest/Collection/IsEmptyTraversableTest.php
+++ b/tests/Hamcrest/Collection/IsEmptyTraversableTest.php
@@ -1,9 +1,9 @@
<?php
namespace Hamcrest\Collection;
-use Hamcrest\AbstractMatcherTest;
+use Hamcrest\AbstractMatcherTestCase;
-class IsEmptyTraversableTest extends AbstractMatcherTest
+class IsEmptyTraversableTest extends AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php b/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php
index c1c67a7..0eedf8e 100644
--- a/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php
+++ b/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Collection;
-class IsTraversableWithSizeTest extends \Hamcrest\AbstractMatcherTest
+class IsTraversableWithSizeTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/AllOfTest.php b/tests/Hamcrest/Core/AllOfTest.php
index 86b8c27..7363ba3 100644
--- a/tests/Hamcrest/Core/AllOfTest.php
+++ b/tests/Hamcrest/Core/AllOfTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class AllOfTest extends \Hamcrest\AbstractMatcherTest
+class AllOfTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/AnyOfTest.php b/tests/Hamcrest/Core/AnyOfTest.php
index 3d62b93..121ee6f 100644
--- a/tests/Hamcrest/Core/AnyOfTest.php
+++ b/tests/Hamcrest/Core/AnyOfTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class AnyOfTest extends \Hamcrest\AbstractMatcherTest
+class AnyOfTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/CombinableMatcherTest.php b/tests/Hamcrest/Core/CombinableMatcherTest.php
index ef94186..96622ad 100644
--- a/tests/Hamcrest/Core/CombinableMatcherTest.php
+++ b/tests/Hamcrest/Core/CombinableMatcherTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class CombinableMatcherTest extends \Hamcrest\AbstractMatcherTest
+class CombinableMatcherTest extends \Hamcrest\AbstractMatcherTestCase
{
private $_either_3_or_4;
diff --git a/tests/Hamcrest/Core/DescribedAsTest.php b/tests/Hamcrest/Core/DescribedAsTest.php
index 673ab41..ec20e28 100644
--- a/tests/Hamcrest/Core/DescribedAsTest.php
+++ b/tests/Hamcrest/Core/DescribedAsTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class DescribedAsTest extends \Hamcrest\AbstractMatcherTest
+class DescribedAsTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/EveryTest.php b/tests/Hamcrest/Core/EveryTest.php
index 5eb153c..9e7b2b9 100644
--- a/tests/Hamcrest/Core/EveryTest.php
+++ b/tests/Hamcrest/Core/EveryTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class EveryTest extends \Hamcrest\AbstractMatcherTest
+class EveryTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/HasToStringTest.php b/tests/Hamcrest/Core/HasToStringTest.php
index e2e136d..bb874a4 100644
--- a/tests/Hamcrest/Core/HasToStringTest.php
+++ b/tests/Hamcrest/Core/HasToStringTest.php
@@ -30,7 +30,7 @@ class BothForms
}
}
-class HasToStringTest extends \Hamcrest\AbstractMatcherTest
+class HasToStringTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/IsAnythingTest.php b/tests/Hamcrest/Core/IsAnythingTest.php
index f68032e..c2ae3e6 100644
--- a/tests/Hamcrest/Core/IsAnythingTest.php
+++ b/tests/Hamcrest/Core/IsAnythingTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class IsAnythingTest extends \Hamcrest\AbstractMatcherTest
+class IsAnythingTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/IsCollectionContainingTest.php b/tests/Hamcrest/Core/IsCollectionContainingTest.php
index a3929b5..6b92212 100644
--- a/tests/Hamcrest/Core/IsCollectionContainingTest.php
+++ b/tests/Hamcrest/Core/IsCollectionContainingTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class IsCollectionContainingTest extends \Hamcrest\AbstractMatcherTest
+class IsCollectionContainingTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/IsEqualTest.php b/tests/Hamcrest/Core/IsEqualTest.php
index 73e3ff0..081275c 100644
--- a/tests/Hamcrest/Core/IsEqualTest.php
+++ b/tests/Hamcrest/Core/IsEqualTest.php
@@ -16,7 +16,7 @@ class DummyToStringClass
}
}
-class IsEqualTest extends \Hamcrest\AbstractMatcherTest
+class IsEqualTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/IsIdenticalTest.php b/tests/Hamcrest/Core/IsIdenticalTest.php
index 9cc2794..d8373c8 100644
--- a/tests/Hamcrest/Core/IsIdenticalTest.php
+++ b/tests/Hamcrest/Core/IsIdenticalTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class IsIdenticalTest extends \Hamcrest\AbstractMatcherTest
+class IsIdenticalTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/IsInstanceOfTest.php b/tests/Hamcrest/Core/IsInstanceOfTest.php
index b4fdd04..ed561c5 100644
--- a/tests/Hamcrest/Core/IsInstanceOfTest.php
+++ b/tests/Hamcrest/Core/IsInstanceOfTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class IsInstanceOfTest extends \Hamcrest\AbstractMatcherTest
+class IsInstanceOfTest extends \Hamcrest\AbstractMatcherTestCase
{
private $_baseClassInstance;
diff --git a/tests/Hamcrest/Core/IsNotTest.php b/tests/Hamcrest/Core/IsNotTest.php
index 09d4a65..18dde53 100644
--- a/tests/Hamcrest/Core/IsNotTest.php
+++ b/tests/Hamcrest/Core/IsNotTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class IsNotTest extends \Hamcrest\AbstractMatcherTest
+class IsNotTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/IsNullTest.php b/tests/Hamcrest/Core/IsNullTest.php
index bfa4255..51513ea 100644
--- a/tests/Hamcrest/Core/IsNullTest.php
+++ b/tests/Hamcrest/Core/IsNullTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class IsNullTest extends \Hamcrest\AbstractMatcherTest
+class IsNullTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/IsSameTest.php b/tests/Hamcrest/Core/IsSameTest.php
index 910bb81..2442dcf 100644
--- a/tests/Hamcrest/Core/IsSameTest.php
+++ b/tests/Hamcrest/Core/IsSameTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class IsSameTest extends \Hamcrest\AbstractMatcherTest
+class IsSameTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/IsTest.php b/tests/Hamcrest/Core/IsTest.php
index bbd848b..5d82fb4 100644
--- a/tests/Hamcrest/Core/IsTest.php
+++ b/tests/Hamcrest/Core/IsTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class IsTest extends \Hamcrest\AbstractMatcherTest
+class IsTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/IsTypeOfTest.php b/tests/Hamcrest/Core/IsTypeOfTest.php
index 3f48dea..7642ab9 100644
--- a/tests/Hamcrest/Core/IsTypeOfTest.php
+++ b/tests/Hamcrest/Core/IsTypeOfTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class IsTypeOfTest extends \Hamcrest\AbstractMatcherTest
+class IsTypeOfTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Core/SetTest.php b/tests/Hamcrest/Core/SetTest.php
index f00efa4..bb3c712 100644
--- a/tests/Hamcrest/Core/SetTest.php
+++ b/tests/Hamcrest/Core/SetTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Core;
-class SetTest extends \Hamcrest\AbstractMatcherTest
+class SetTest extends \Hamcrest\AbstractMatcherTestCase
{
public static $_classProperty;
diff --git a/tests/Hamcrest/FeatureMatcherTest.php b/tests/Hamcrest/FeatureMatcherTest.php
index dfae872..4e4ad58 100644
--- a/tests/Hamcrest/FeatureMatcherTest.php
+++ b/tests/Hamcrest/FeatureMatcherTest.php
@@ -29,7 +29,7 @@ class ResultMatcher extends \Hamcrest\FeatureMatcher
}
}
-class FeatureMatcherTest extends \Hamcrest\AbstractMatcherTest
+class FeatureMatcherTest extends \Hamcrest\AbstractMatcherTestCase
{
private $_resultMatcher;
diff --git a/tests/Hamcrest/Number/IsCloseToTest.php b/tests/Hamcrest/Number/IsCloseToTest.php
index 987d552..e3f04af 100644
--- a/tests/Hamcrest/Number/IsCloseToTest.php
+++ b/tests/Hamcrest/Number/IsCloseToTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Number;
-class IsCloseToTest extends \Hamcrest\AbstractMatcherTest
+class IsCloseToTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Number/OrderingComparisonTest.php b/tests/Hamcrest/Number/OrderingComparisonTest.php
index a4c94d3..d69b886 100644
--- a/tests/Hamcrest/Number/OrderingComparisonTest.php
+++ b/tests/Hamcrest/Number/OrderingComparisonTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Number;
-class OrderingComparisonTest extends \Hamcrest\AbstractMatcherTest
+class OrderingComparisonTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Text/IsEmptyStringTest.php b/tests/Hamcrest/Text/IsEmptyStringTest.php
index 8d5c56b..a39e9ac 100644
--- a/tests/Hamcrest/Text/IsEmptyStringTest.php
+++ b/tests/Hamcrest/Text/IsEmptyStringTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Text;
-class IsEmptyStringTest extends \Hamcrest\AbstractMatcherTest
+class IsEmptyStringTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php b/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php
index 0539fd5..a4a70ad 100644
--- a/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php
+++ b/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Text;
-class IsEqualIgnoringCaseTest extends \Hamcrest\AbstractMatcherTest
+class IsEqualIgnoringCaseTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php b/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php
index 4244448..4a9ce68 100644
--- a/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php
+++ b/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Text;
-class IsEqualIgnoringWhiteSpaceTest extends \Hamcrest\AbstractMatcherTest
+class IsEqualIgnoringWhiteSpaceTest extends \Hamcrest\AbstractMatcherTestCase
{
private $_matcher;
diff --git a/tests/Hamcrest/Text/MatchesPatternTest.php b/tests/Hamcrest/Text/MatchesPatternTest.php
index 4891598..9206f13 100644
--- a/tests/Hamcrest/Text/MatchesPatternTest.php
+++ b/tests/Hamcrest/Text/MatchesPatternTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Text;
-class MatchesPatternTest extends \Hamcrest\AbstractMatcherTest
+class MatchesPatternTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php b/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php
index 8b4463a..1700d5d 100644
--- a/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php
+++ b/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Text;
-class StringContainsIgnoringCaseTest extends \Hamcrest\AbstractMatcherTest
+class StringContainsIgnoringCaseTest extends \Hamcrest\AbstractMatcherTestCase
{
const EXCERPT = 'ExcErPt';
diff --git a/tests/Hamcrest/Text/StringContainsInOrderTest.php b/tests/Hamcrest/Text/StringContainsInOrderTest.php
index adb8658..45b8315 100644
--- a/tests/Hamcrest/Text/StringContainsInOrderTest.php
+++ b/tests/Hamcrest/Text/StringContainsInOrderTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Text;
-class StringContainsInOrderTest extends \Hamcrest\AbstractMatcherTest
+class StringContainsInOrderTest extends \Hamcrest\AbstractMatcherTestCase
{
private $_m;
diff --git a/tests/Hamcrest/Text/StringContainsTest.php b/tests/Hamcrest/Text/StringContainsTest.php
index 814c1ca..79d776c 100644
--- a/tests/Hamcrest/Text/StringContainsTest.php
+++ b/tests/Hamcrest/Text/StringContainsTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Text;
-class StringContainsTest extends \Hamcrest\AbstractMatcherTest
+class StringContainsTest extends \Hamcrest\AbstractMatcherTestCase
{
const EXCERPT = 'EXCERPT';
diff --git a/tests/Hamcrest/Text/StringEndsWithTest.php b/tests/Hamcrest/Text/StringEndsWithTest.php
index 46177f4..7d0044f 100644
--- a/tests/Hamcrest/Text/StringEndsWithTest.php
+++ b/tests/Hamcrest/Text/StringEndsWithTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Text;
-class StringEndsWithTest extends \Hamcrest\AbstractMatcherTest
+class StringEndsWithTest extends \Hamcrest\AbstractMatcherTestCase
{
const EXCERPT = 'EXCERPT';
diff --git a/tests/Hamcrest/Text/StringStartsWithTest.php b/tests/Hamcrest/Text/StringStartsWithTest.php
index f0eb14b..97581bf 100644
--- a/tests/Hamcrest/Text/StringStartsWithTest.php
+++ b/tests/Hamcrest/Text/StringStartsWithTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Text;
-class StringStartsWithTest extends \Hamcrest\AbstractMatcherTest
+class StringStartsWithTest extends \Hamcrest\AbstractMatcherTestCase
{
const EXCERPT = 'EXCERPT';
diff --git a/tests/Hamcrest/Type/IsArrayTest.php b/tests/Hamcrest/Type/IsArrayTest.php
index d13c24d..b1d7a93 100644
--- a/tests/Hamcrest/Type/IsArrayTest.php
+++ b/tests/Hamcrest/Type/IsArrayTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Type;
-class IsArrayTest extends \Hamcrest\AbstractMatcherTest
+class IsArrayTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Type/IsBooleanTest.php b/tests/Hamcrest/Type/IsBooleanTest.php
index 24309fc..008c333 100644
--- a/tests/Hamcrest/Type/IsBooleanTest.php
+++ b/tests/Hamcrest/Type/IsBooleanTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Type;
-class IsBooleanTest extends \Hamcrest\AbstractMatcherTest
+class IsBooleanTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Type/IsCallableTest.php b/tests/Hamcrest/Type/IsCallableTest.php
index 5098e21..92df401 100644
--- a/tests/Hamcrest/Type/IsCallableTest.php
+++ b/tests/Hamcrest/Type/IsCallableTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Type;
-class IsCallableTest extends \Hamcrest\AbstractMatcherTest
+class IsCallableTest extends \Hamcrest\AbstractMatcherTestCase
{
public static function callableFunction()
diff --git a/tests/Hamcrest/Type/IsDoubleTest.php b/tests/Hamcrest/Type/IsDoubleTest.php
index 85c2a96..eb3bce6 100644
--- a/tests/Hamcrest/Type/IsDoubleTest.php
+++ b/tests/Hamcrest/Type/IsDoubleTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Type;
-class IsDoubleTest extends \Hamcrest\AbstractMatcherTest
+class IsDoubleTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Type/IsIntegerTest.php b/tests/Hamcrest/Type/IsIntegerTest.php
index ce5a51a..33c5212 100644
--- a/tests/Hamcrest/Type/IsIntegerTest.php
+++ b/tests/Hamcrest/Type/IsIntegerTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Type;
-class IsIntegerTest extends \Hamcrest\AbstractMatcherTest
+class IsIntegerTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Type/IsNumericTest.php b/tests/Hamcrest/Type/IsNumericTest.php
index 1fd83ef..eeb12c4 100644
--- a/tests/Hamcrest/Type/IsNumericTest.php
+++ b/tests/Hamcrest/Type/IsNumericTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Type;
-class IsNumericTest extends \Hamcrest\AbstractMatcherTest
+class IsNumericTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Type/IsObjectTest.php b/tests/Hamcrest/Type/IsObjectTest.php
index a3b617c..df14e1a 100644
--- a/tests/Hamcrest/Type/IsObjectTest.php
+++ b/tests/Hamcrest/Type/IsObjectTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Type;
-class IsObjectTest extends \Hamcrest\AbstractMatcherTest
+class IsObjectTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Type/IsResourceTest.php b/tests/Hamcrest/Type/IsResourceTest.php
index d6ea534..a9e3047 100644
--- a/tests/Hamcrest/Type/IsResourceTest.php
+++ b/tests/Hamcrest/Type/IsResourceTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Type;
-class IsResourceTest extends \Hamcrest\AbstractMatcherTest
+class IsResourceTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Type/IsScalarTest.php b/tests/Hamcrest/Type/IsScalarTest.php
index 72a188d..ba7cfc7 100644
--- a/tests/Hamcrest/Type/IsScalarTest.php
+++ b/tests/Hamcrest/Type/IsScalarTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Type;
-class IsScalarTest extends \Hamcrest\AbstractMatcherTest
+class IsScalarTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Type/IsStringTest.php b/tests/Hamcrest/Type/IsStringTest.php
index 557d591..61265dc 100644
--- a/tests/Hamcrest/Type/IsStringTest.php
+++ b/tests/Hamcrest/Type/IsStringTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Type;
-class IsStringTest extends \Hamcrest\AbstractMatcherTest
+class IsStringTest extends \Hamcrest\AbstractMatcherTestCase
{
protected function createMatcher()
diff --git a/tests/Hamcrest/Xml/HasXPathTest.php b/tests/Hamcrest/Xml/HasXPathTest.php
index 3db5e46..eba2081 100644
--- a/tests/Hamcrest/Xml/HasXPathTest.php
+++ b/tests/Hamcrest/Xml/HasXPathTest.php
@@ -1,7 +1,7 @@
<?php
namespace Hamcrest\Xml;
-class HasXPathTest extends \Hamcrest\AbstractMatcherTest
+class HasXPathTest extends \Hamcrest\AbstractMatcherTestCase
{
protected static $xml;
protected static $doc;
|