Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
Complex classes like Framework_AssertTest often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Framework_AssertTest, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 14 | class Framework_AssertTest extends PHPUnit_Framework_TestCase |
||
|
|
|||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $filesDirectory; |
||
| 20 | |||
| 21 | protected function setUp() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @covers PHPUnit_Framework_Assert::fail |
||
| 28 | */ |
||
| 29 | public function testFail() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @covers PHPUnit_Framework_Assert::assertContains |
||
| 42 | */ |
||
| 43 | View Code Duplication | public function testAssertSplObjectStorageContainsObject() |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @covers PHPUnit_Framework_Assert::assertContains |
||
| 63 | */ |
||
| 64 | View Code Duplication | public function testAssertArrayContainsObject() |
|
| 79 | |||
| 80 | /** |
||
| 81 | * @covers PHPUnit_Framework_Assert::assertContains |
||
| 82 | */ |
||
| 83 | View Code Duplication | public function testAssertArrayContainsString() |
|
| 95 | |||
| 96 | /** |
||
| 97 | * @covers PHPUnit_Framework_Assert::assertContains |
||
| 98 | */ |
||
| 99 | public function testAssertArrayContainsNonObject() |
||
| 111 | |||
| 112 | /** |
||
| 113 | * @covers PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf |
||
| 114 | */ |
||
| 115 | public function testAssertContainsOnlyInstancesOf() |
||
| 134 | |||
| 135 | /** |
||
| 136 | * @covers PHPUnit_Framework_Assert::assertArrayHasKey |
||
| 137 | * @expectedException PHPUnit_Framework_Exception |
||
| 138 | */ |
||
| 139 | public function testAssertArrayHasKeyThrowsExceptionForInvalidFirstArgument() |
||
| 143 | |||
| 144 | /** |
||
| 145 | * @covers PHPUnit_Framework_Assert::assertArrayHasKey |
||
| 146 | * @expectedException PHPUnit_Framework_Exception |
||
| 147 | */ |
||
| 148 | public function testAssertArrayHasKeyThrowsExceptionForInvalidSecondArgument() |
||
| 152 | |||
| 153 | /** |
||
| 154 | * @covers PHPUnit_Framework_Assert::assertArrayHasKey |
||
| 155 | */ |
||
| 156 | View Code Duplication | public function testAssertArrayHasIntegerKey() |
|
| 168 | |||
| 169 | /** |
||
| 170 | * @covers PHPUnit_Framework_Assert::assertArraySubset |
||
| 171 | * @covers PHPUnit_Framework_Constraint_ArraySubset |
||
| 172 | */ |
||
| 173 | public function testAssertArraySubset() |
||
| 198 | |||
| 199 | /** |
||
| 200 | * @covers PHPUnit_Framework_Assert::assertArraySubset |
||
| 201 | * @covers PHPUnit_Framework_Constraint_ArraySubset |
||
| 202 | */ |
||
| 203 | public function testAssertArraySubsetWithDeepNestedArrays() |
||
| 228 | |||
| 229 | /** |
||
| 230 | * @covers PHPUnit_Framework_Assert::assertArraySubset |
||
| 231 | * @covers PHPUnit_Framework_Constraint_ArraySubset |
||
| 232 | */ |
||
| 233 | public function testAssertArraySubsetWithNoStrictCheckAndObjects() |
||
| 242 | |||
| 243 | /** |
||
| 244 | * @covers PHPUnit_Framework_Assert::assertArraySubset |
||
| 245 | * @covers PHPUnit_Framework_Constraint_ArraySubset |
||
| 246 | */ |
||
| 247 | public function testAssertArraySubsetWithStrictCheckAndObjects() |
||
| 263 | |||
| 264 | /** |
||
| 265 | * @covers PHPUnit_Framework_Assert::assertArraySubset |
||
| 266 | * @covers PHPUnit_Framework_Constraint_ArraySubset |
||
| 267 | * @expectedException PHPUnit_Framework_Exception |
||
| 268 | * @expectedExceptionMessage array or ArrayAccess |
||
| 269 | * @dataProvider assertArraySubsetInvalidArgumentProvider |
||
| 270 | */ |
||
| 271 | public function testAssertArraySubsetRaisesExceptionForInvalidArguments($partial, $subject) |
||
| 275 | |||
| 276 | /** |
||
| 277 | * @return array |
||
| 278 | */ |
||
| 279 | public function assertArraySubsetInvalidArgumentProvider() |
||
| 286 | |||
| 287 | /** |
||
| 288 | * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey |
||
| 289 | * @expectedException PHPUnit_Framework_Exception |
||
| 290 | */ |
||
| 291 | public function testAssertArrayNotHasKeyThrowsExceptionForInvalidFirstArgument() |
||
| 295 | |||
| 296 | /** |
||
| 297 | * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey |
||
| 298 | * @expectedException PHPUnit_Framework_Exception |
||
| 299 | */ |
||
| 300 | public function testAssertArrayNotHasKeyThrowsExceptionForInvalidSecondArgument() |
||
| 304 | |||
| 305 | /** |
||
| 306 | * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey |
||
| 307 | */ |
||
| 308 | View Code Duplication | public function testAssertArrayNotHasIntegerKey() |
|
| 320 | |||
| 321 | /** |
||
| 322 | * @covers PHPUnit_Framework_Assert::assertArrayHasKey |
||
| 323 | */ |
||
| 324 | View Code Duplication | public function testAssertArrayHasStringKey() |
|
| 336 | |||
| 337 | /** |
||
| 338 | * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey |
||
| 339 | */ |
||
| 340 | View Code Duplication | public function testAssertArrayNotHasStringKey() |
|
| 352 | |||
| 353 | /** |
||
| 354 | * @covers PHPUnit_Framework_Assert::assertArrayHasKey |
||
| 355 | */ |
||
| 356 | public function testAssertArrayHasKeyAcceptsArrayObjectValue() |
||
| 362 | |||
| 363 | /** |
||
| 364 | * @covers PHPUnit_Framework_Assert::assertArrayHasKey |
||
| 365 | * @expectedException PHPUnit_Framework_AssertionFailedError |
||
| 366 | */ |
||
| 367 | public function testAssertArrayHasKeyProperlyFailsWithArrayObjectValue() |
||
| 373 | |||
| 374 | /** |
||
| 375 | * @covers PHPUnit_Framework_Assert::assertArrayHasKey |
||
| 376 | */ |
||
| 377 | public function testAssertArrayHasKeyAcceptsArrayAccessValue() |
||
| 383 | |||
| 384 | /** |
||
| 385 | * @covers PHPUnit_Framework_Assert::assertArrayHasKey |
||
| 386 | * @expectedException PHPUnit_Framework_AssertionFailedError |
||
| 387 | */ |
||
| 388 | public function testAssertArrayHasKeyProperlyFailsWithArrayAccessValue() |
||
| 394 | |||
| 395 | /** |
||
| 396 | * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey |
||
| 397 | */ |
||
| 398 | public function testAssertArrayNotHasKeyAcceptsArrayAccessValue() |
||
| 404 | |||
| 405 | /** |
||
| 406 | * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey |
||
| 407 | * @expectedException PHPUnit_Framework_AssertionFailedError |
||
| 408 | */ |
||
| 409 | public function testAssertArrayNotHasKeyPropertlyFailsWithArrayAccessValue() |
||
| 415 | |||
| 416 | /** |
||
| 417 | * @covers PHPUnit_Framework_Assert::assertContains |
||
| 418 | * @expectedException PHPUnit_Framework_Exception |
||
| 419 | */ |
||
| 420 | public function testAssertContainsThrowsException() |
||
| 424 | |||
| 425 | /** |
||
| 426 | * @covers PHPUnit_Framework_Assert::assertContains |
||
| 427 | */ |
||
| 428 | public function testAssertIteratorContainsObject() |
||
| 442 | |||
| 443 | /** |
||
| 444 | * @covers PHPUnit_Framework_Assert::assertContains |
||
| 445 | */ |
||
| 446 | View Code Duplication | public function testAssertIteratorContainsString() |
|
| 458 | |||
| 459 | /** |
||
| 460 | * @covers PHPUnit_Framework_Assert::assertContains |
||
| 461 | */ |
||
| 462 | public function testAssertStringContainsString() |
||
| 474 | |||
| 475 | /** |
||
| 476 | * @covers PHPUnit_Framework_Assert::assertNotContains |
||
| 477 | * @expectedException PHPUnit_Framework_Exception |
||
| 478 | */ |
||
| 479 | public function testAssertNotContainsThrowsException() |
||
| 483 | |||
| 484 | /** |
||
| 485 | * @covers PHPUnit_Framework_Assert::assertNotContains |
||
| 486 | */ |
||
| 487 | View Code Duplication | public function testAssertSplObjectStorageNotContainsObject() |
|
| 504 | |||
| 505 | /** |
||
| 506 | * @covers PHPUnit_Framework_Assert::assertNotContains |
||
| 507 | */ |
||
| 508 | View Code Duplication | public function testAssertArrayNotContainsObject() |
|
| 523 | |||
| 524 | /** |
||
| 525 | * @covers PHPUnit_Framework_Assert::assertNotContains |
||
| 526 | */ |
||
| 527 | public function testAssertArrayNotContainsString() |
||
| 539 | |||
| 540 | /** |
||
| 541 | * @covers PHPUnit_Framework_Assert::assertNotContains |
||
| 542 | */ |
||
| 543 | public function testAssertArrayNotContainsNonObject() |
||
| 555 | |||
| 556 | /** |
||
| 557 | * @covers PHPUnit_Framework_Assert::assertNotContains |
||
| 558 | */ |
||
| 559 | public function testAssertStringNotContainsString() |
||
| 571 | |||
| 572 | /** |
||
| 573 | * @covers PHPUnit_Framework_Assert::assertContainsOnly |
||
| 574 | * @expectedException PHPUnit_Framework_Exception |
||
| 575 | */ |
||
| 576 | public function testAssertContainsOnlyThrowsException() |
||
| 580 | |||
| 581 | /** |
||
| 582 | * @covers PHPUnit_Framework_Assert::assertNotContainsOnly |
||
| 583 | * @expectedException PHPUnit_Framework_Exception |
||
| 584 | */ |
||
| 585 | public function testAssertNotContainsOnlyThrowsException() |
||
| 589 | |||
| 590 | /** |
||
| 591 | * @covers PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf |
||
| 592 | * @expectedException PHPUnit_Framework_Exception |
||
| 593 | */ |
||
| 594 | public function testAssertContainsOnlyInstancesOfThrowsException() |
||
| 598 | |||
| 599 | /** |
||
| 600 | * @covers PHPUnit_Framework_Assert::assertContainsOnly |
||
| 601 | */ |
||
| 602 | View Code Duplication | public function testAssertArrayContainsOnlyIntegers() |
|
| 614 | |||
| 615 | /** |
||
| 616 | * @covers PHPUnit_Framework_Assert::assertNotContainsOnly |
||
| 617 | */ |
||
| 618 | View Code Duplication | public function testAssertArrayNotContainsOnlyIntegers() |
|
| 630 | |||
| 631 | /** |
||
| 632 | * @covers PHPUnit_Framework_Assert::assertContainsOnly |
||
| 633 | */ |
||
| 634 | public function testAssertArrayContainsOnlyStdClass() |
||
| 646 | |||
| 647 | /** |
||
| 648 | * @covers PHPUnit_Framework_Assert::assertNotContainsOnly |
||
| 649 | */ |
||
| 650 | public function testAssertArrayNotContainsOnlyStdClass() |
||
| 662 | |||
| 663 | protected function sameValues() |
||
| 693 | |||
| 694 | protected function notEqualValues() |
||
| 836 | |||
| 837 | protected function equalValues() |
||
| 948 | |||
| 949 | public function equalProvider() |
||
| 954 | |||
| 955 | public function notEqualProvider() |
||
| 959 | |||
| 960 | public function sameProvider() |
||
| 964 | |||
| 965 | public function notSameProvider() |
||
| 971 | |||
| 972 | /** |
||
| 973 | * @covers PHPUnit_Framework_Assert::assertEquals |
||
| 974 | * @dataProvider equalProvider |
||
| 975 | */ |
||
| 976 | public function testAssertEqualsSucceeds($a, $b, $delta = 0.0, $canonicalize = false, $ignoreCase = false) |
||
| 980 | |||
| 981 | /** |
||
| 982 | * @covers PHPUnit_Framework_Assert::assertEquals |
||
| 983 | * @dataProvider notEqualProvider |
||
| 984 | */ |
||
| 985 | View Code Duplication | public function testAssertEqualsFails($a, $b, $delta = 0.0, $canonicalize = false, $ignoreCase = false) |
|
| 995 | |||
| 996 | /** |
||
| 997 | * @covers PHPUnit_Framework_Assert::assertNotEquals |
||
| 998 | * @dataProvider notEqualProvider |
||
| 999 | */ |
||
| 1000 | public function testAssertNotEqualsSucceeds($a, $b, $delta = 0.0, $canonicalize = false, $ignoreCase = false) |
||
| 1004 | |||
| 1005 | /** |
||
| 1006 | * @covers PHPUnit_Framework_Assert::assertNotEquals |
||
| 1007 | * @dataProvider equalProvider |
||
| 1008 | */ |
||
| 1009 | View Code Duplication | public function testAssertNotEqualsFails($a, $b, $delta = 0.0, $canonicalize = false, $ignoreCase = false) |
|
| 1019 | |||
| 1020 | /** |
||
| 1021 | * @covers PHPUnit_Framework_Assert::assertSame |
||
| 1022 | * @dataProvider sameProvider |
||
| 1023 | */ |
||
| 1024 | public function testAssertSameSucceeds($a, $b) |
||
| 1028 | |||
| 1029 | /** |
||
| 1030 | * @covers PHPUnit_Framework_Assert::assertSame |
||
| 1031 | * @dataProvider notSameProvider |
||
| 1032 | */ |
||
| 1033 | public function testAssertSameFails($a, $b) |
||
| 1043 | |||
| 1044 | /** |
||
| 1045 | * @covers PHPUnit_Framework_Assert::assertNotSame |
||
| 1046 | * @dataProvider notSameProvider |
||
| 1047 | */ |
||
| 1048 | public function testAssertNotSameSucceeds($a, $b) |
||
| 1052 | |||
| 1053 | /** |
||
| 1054 | * @covers PHPUnit_Framework_Assert::assertNotSame |
||
| 1055 | * @dataProvider sameProvider |
||
| 1056 | */ |
||
| 1057 | public function testAssertNotSameFails($a, $b) |
||
| 1067 | |||
| 1068 | /** |
||
| 1069 | * @covers PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile |
||
| 1070 | */ |
||
| 1071 | View Code Duplication | public function testAssertXmlFileEqualsXmlFile() |
|
| 1089 | |||
| 1090 | /** |
||
| 1091 | * @covers PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile |
||
| 1092 | */ |
||
| 1093 | View Code Duplication | public function testAssertXmlFileNotEqualsXmlFile() |
|
| 1111 | |||
| 1112 | /** |
||
| 1113 | * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile |
||
| 1114 | */ |
||
| 1115 | View Code Duplication | public function testAssertXmlStringEqualsXmlFile() |
|
| 1133 | |||
| 1134 | /** |
||
| 1135 | * @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile |
||
| 1136 | */ |
||
| 1137 | View Code Duplication | public function testXmlStringNotEqualsXmlFile() |
|
| 1155 | |||
| 1156 | /** |
||
| 1157 | * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString |
||
| 1158 | */ |
||
| 1159 | public function testAssertXmlStringEqualsXmlString() |
||
| 1171 | |||
| 1172 | /** |
||
| 1173 | * @expectedException PHPUnit_Framework_Exception |
||
| 1174 | * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString |
||
| 1175 | * @ticket 1860 |
||
| 1176 | */ |
||
| 1177 | public function testAssertXmlStringEqualsXmlString2() |
||
| 1181 | |||
| 1182 | /** |
||
| 1183 | * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString |
||
| 1184 | * @ticket 1860 |
||
| 1185 | */ |
||
| 1186 | public function testAssertXmlStringEqualsXmlString3() |
||
| 1204 | |||
| 1205 | /** |
||
| 1206 | * @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString |
||
| 1207 | */ |
||
| 1208 | public function testAssertXmlStringNotEqualsXmlString() |
||
| 1220 | |||
| 1221 | /** |
||
| 1222 | * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure |
||
| 1223 | */ |
||
| 1224 | View Code Duplication | public function testXMLStructureIsSame() |
|
| 1236 | |||
| 1237 | /** |
||
| 1238 | * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure |
||
| 1239 | * @expectedException PHPUnit_Framework_ExpectationFailedException |
||
| 1240 | */ |
||
| 1241 | View Code Duplication | public function testXMLStructureWrongNumberOfAttributes() |
|
| 1253 | |||
| 1254 | /** |
||
| 1255 | * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure |
||
| 1256 | * @expectedException PHPUnit_Framework_ExpectationFailedException |
||
| 1257 | */ |
||
| 1258 | View Code Duplication | public function testXMLStructureWrongNumberOfNodes() |
|
| 1270 | |||
| 1271 | /** |
||
| 1272 | * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure |
||
| 1273 | */ |
||
| 1274 | View Code Duplication | public function testXMLStructureIsSameButDataIsNot() |
|
| 1286 | |||
| 1287 | /** |
||
| 1288 | * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure |
||
| 1289 | */ |
||
| 1290 | View Code Duplication | public function testXMLStructureAttributesAreSameButValuesAreNot() |
|
| 1302 | |||
| 1303 | /** |
||
| 1304 | * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure |
||
| 1305 | */ |
||
| 1306 | View Code Duplication | public function testXMLStructureIgnoreTextNodes() |
|
| 1318 | |||
| 1319 | /** |
||
| 1320 | * @covers PHPUnit_Framework_Assert::assertEquals |
||
| 1321 | */ |
||
| 1322 | public function testAssertStringEqualsNumeric() |
||
| 1334 | |||
| 1335 | /** |
||
| 1336 | * @covers PHPUnit_Framework_Assert::assertNotEquals |
||
| 1337 | */ |
||
| 1338 | public function testAssertStringEqualsNumeric2() |
||
| 1342 | |||
| 1343 | /** |
||
| 1344 | * @covers PHPUnit_Framework_Assert::assertFileExists |
||
| 1345 | * @expectedException PHPUnit_Framework_Exception |
||
| 1346 | */ |
||
| 1347 | public function testAssertFileExistsThrowsException() |
||
| 1351 | |||
| 1352 | /** |
||
| 1353 | * @covers PHPUnit_Framework_Assert::assertFileExists |
||
| 1354 | */ |
||
| 1355 | public function testAssertFileExists() |
||
| 1367 | |||
| 1368 | /** |
||
| 1369 | * @covers PHPUnit_Framework_Assert::assertFileNotExists |
||
| 1370 | * @expectedException PHPUnit_Framework_Exception |
||
| 1371 | */ |
||
| 1372 | public function testAssertFileNotExistsThrowsException() |
||
| 1376 | |||
| 1377 | /** |
||
| 1378 | * @covers PHPUnit_Framework_Assert::assertFileNotExists |
||
| 1379 | */ |
||
| 1380 | public function testAssertFileNotExists() |
||
| 1392 | |||
| 1393 | /** |
||
| 1394 | * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute |
||
| 1395 | */ |
||
| 1396 | public function testAssertObjectHasAttribute() |
||
| 1410 | |||
| 1411 | /** |
||
| 1412 | * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute |
||
| 1413 | */ |
||
| 1414 | public function testAssertObjectNotHasAttribute() |
||
| 1428 | |||
| 1429 | /** |
||
| 1430 | * @covers PHPUnit_Framework_Assert::assertNull |
||
| 1431 | */ |
||
| 1432 | public function testAssertNull() |
||
| 1444 | |||
| 1445 | /** |
||
| 1446 | * @covers PHPUnit_Framework_Assert::assertNotNull |
||
| 1447 | */ |
||
| 1448 | public function testAssertNotNull() |
||
| 1460 | |||
| 1461 | /** |
||
| 1462 | * @covers PHPUnit_Framework_Assert::assertTrue |
||
| 1463 | */ |
||
| 1464 | public function testAssertTrue() |
||
| 1476 | |||
| 1477 | /** |
||
| 1478 | * @covers PHPUnit_Framework_Assert::assertNotTrue |
||
| 1479 | */ |
||
| 1480 | public function testAssertNotTrue() |
||
| 1494 | |||
| 1495 | /** |
||
| 1496 | * @covers PHPUnit_Framework_Assert::assertFalse |
||
| 1497 | */ |
||
| 1498 | public function testAssertFalse() |
||
| 1510 | |||
| 1511 | /** |
||
| 1512 | * @covers PHPUnit_Framework_Assert::assertNotFalse |
||
| 1513 | */ |
||
| 1514 | public function testAssertNotFalse() |
||
| 1528 | |||
| 1529 | /** |
||
| 1530 | * @covers PHPUnit_Framework_Assert::assertRegExp |
||
| 1531 | * @expectedException PHPUnit_Framework_Exception |
||
| 1532 | */ |
||
| 1533 | public function testAssertRegExpThrowsException() |
||
| 1537 | |||
| 1538 | /** |
||
| 1539 | * @covers PHPUnit_Framework_Assert::assertRegExp |
||
| 1540 | * @expectedException PHPUnit_Framework_Exception |
||
| 1541 | */ |
||
| 1542 | public function testAssertRegExpThrowsException2() |
||
| 1546 | |||
| 1547 | /** |
||
| 1548 | * @covers PHPUnit_Framework_Assert::assertNotRegExp |
||
| 1549 | * @expectedException PHPUnit_Framework_Exception |
||
| 1550 | */ |
||
| 1551 | public function testAssertNotRegExpThrowsException() |
||
| 1555 | |||
| 1556 | /** |
||
| 1557 | * @covers PHPUnit_Framework_Assert::assertNotRegExp |
||
| 1558 | * @expectedException PHPUnit_Framework_Exception |
||
| 1559 | */ |
||
| 1560 | public function testAssertNotRegExpThrowsException2() |
||
| 1564 | |||
| 1565 | /** |
||
| 1566 | * @covers PHPUnit_Framework_Assert::assertRegExp |
||
| 1567 | */ |
||
| 1568 | public function testAssertRegExp() |
||
| 1580 | |||
| 1581 | /** |
||
| 1582 | * @covers PHPUnit_Framework_Assert::assertNotRegExp |
||
| 1583 | */ |
||
| 1584 | public function testAssertNotRegExp() |
||
| 1596 | |||
| 1597 | /** |
||
| 1598 | * @covers PHPUnit_Framework_Assert::assertSame |
||
| 1599 | */ |
||
| 1600 | public function testAssertSame() |
||
| 1617 | |||
| 1618 | /** |
||
| 1619 | * @covers PHPUnit_Framework_Assert::assertSame |
||
| 1620 | */ |
||
| 1621 | public function testAssertSame2() |
||
| 1634 | |||
| 1635 | /** |
||
| 1636 | * @covers PHPUnit_Framework_Assert::assertNotSame |
||
| 1637 | */ |
||
| 1638 | public function testAssertNotSame() |
||
| 1665 | |||
| 1666 | /** |
||
| 1667 | * @covers PHPUnit_Framework_Assert::assertNotSame |
||
| 1668 | */ |
||
| 1669 | public function testAssertNotSame2() |
||
| 1682 | |||
| 1683 | /** |
||
| 1684 | * @covers PHPUnit_Framework_Assert::assertNotSame |
||
| 1685 | */ |
||
| 1686 | public function testAssertNotSameFailsNull() |
||
| 1696 | |||
| 1697 | /** |
||
| 1698 | * @covers PHPUnit_Framework_Assert::assertGreaterThan |
||
| 1699 | */ |
||
| 1700 | public function testGreaterThan() |
||
| 1712 | |||
| 1713 | /** |
||
| 1714 | * @covers PHPUnit_Framework_Assert::assertAttributeGreaterThan |
||
| 1715 | */ |
||
| 1716 | public function testAttributeGreaterThan() |
||
| 1732 | |||
| 1733 | /** |
||
| 1734 | * @covers PHPUnit_Framework_Assert::assertGreaterThanOrEqual |
||
| 1735 | */ |
||
| 1736 | public function testGreaterThanOrEqual() |
||
| 1748 | |||
| 1749 | /** |
||
| 1750 | * @covers PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual |
||
| 1751 | */ |
||
| 1752 | public function testAttributeGreaterThanOrEqual() |
||
| 1768 | |||
| 1769 | /** |
||
| 1770 | * @covers PHPUnit_Framework_Assert::assertLessThan |
||
| 1771 | */ |
||
| 1772 | public function testLessThan() |
||
| 1784 | |||
| 1785 | /** |
||
| 1786 | * @covers PHPUnit_Framework_Assert::assertAttributeLessThan |
||
| 1787 | */ |
||
| 1788 | public function testAttributeLessThan() |
||
| 1804 | |||
| 1805 | /** |
||
| 1806 | * @covers PHPUnit_Framework_Assert::assertLessThanOrEqual |
||
| 1807 | */ |
||
| 1808 | public function testLessThanOrEqual() |
||
| 1820 | |||
| 1821 | /** |
||
| 1822 | * @covers PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual |
||
| 1823 | */ |
||
| 1824 | public function testAttributeLessThanOrEqual() |
||
| 1840 | |||
| 1841 | /** |
||
| 1842 | * @covers PHPUnit_Framework_Assert::readAttribute |
||
| 1843 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1844 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1845 | */ |
||
| 1846 | public function testReadAttribute() |
||
| 1856 | |||
| 1857 | /** |
||
| 1858 | * @covers PHPUnit_Framework_Assert::readAttribute |
||
| 1859 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1860 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1861 | */ |
||
| 1862 | public function testReadAttribute2() |
||
| 1870 | |||
| 1871 | /** |
||
| 1872 | * @covers PHPUnit_Framework_Assert::readAttribute |
||
| 1873 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1874 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1875 | * @expectedException PHPUnit_Framework_Exception |
||
| 1876 | */ |
||
| 1877 | public function testReadAttribute3() |
||
| 1881 | |||
| 1882 | /** |
||
| 1883 | * @covers PHPUnit_Framework_Assert::readAttribute |
||
| 1884 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1885 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1886 | * @expectedException PHPUnit_Framework_Exception |
||
| 1887 | */ |
||
| 1888 | public function testReadAttribute4() |
||
| 1892 | |||
| 1893 | /** |
||
| 1894 | * @covers PHPUnit_Framework_Assert::readAttribute |
||
| 1895 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1896 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1897 | * @expectedException PHPUnit_Framework_Exception |
||
| 1898 | */ |
||
| 1899 | public function testReadAttribute5() |
||
| 1903 | |||
| 1904 | /** |
||
| 1905 | * @covers PHPUnit_Framework_Assert::readAttribute |
||
| 1906 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1907 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1908 | * @expectedException PHPUnit_Framework_Exception |
||
| 1909 | */ |
||
| 1910 | public function testReadAttributeIfAttributeNameIsNotValid() |
||
| 1914 | |||
| 1915 | /** |
||
| 1916 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1917 | * @expectedException PHPUnit_Framework_Exception |
||
| 1918 | */ |
||
| 1919 | public function testGetStaticAttributeRaisesExceptionForInvalidFirstArgument() |
||
| 1923 | |||
| 1924 | /** |
||
| 1925 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1926 | * @expectedException PHPUnit_Framework_Exception |
||
| 1927 | */ |
||
| 1928 | public function testGetStaticAttributeRaisesExceptionForInvalidFirstArgument2() |
||
| 1932 | |||
| 1933 | /** |
||
| 1934 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1935 | * @expectedException PHPUnit_Framework_Exception |
||
| 1936 | */ |
||
| 1937 | public function testGetStaticAttributeRaisesExceptionForInvalidSecondArgument() |
||
| 1941 | |||
| 1942 | /** |
||
| 1943 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1944 | * @expectedException PHPUnit_Framework_Exception |
||
| 1945 | */ |
||
| 1946 | public function testGetStaticAttributeRaisesExceptionForInvalidSecondArgument2() |
||
| 1950 | |||
| 1951 | /** |
||
| 1952 | * @covers PHPUnit_Framework_Assert::getStaticAttribute |
||
| 1953 | * @expectedException PHPUnit_Framework_Exception |
||
| 1954 | */ |
||
| 1955 | public function testGetStaticAttributeRaisesExceptionForInvalidSecondArgument3() |
||
| 1959 | |||
| 1960 | /** |
||
| 1961 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1962 | * @expectedException PHPUnit_Framework_Exception |
||
| 1963 | */ |
||
| 1964 | public function testGetObjectAttributeRaisesExceptionForInvalidFirstArgument() |
||
| 1968 | |||
| 1969 | /** |
||
| 1970 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1971 | * @expectedException PHPUnit_Framework_Exception |
||
| 1972 | */ |
||
| 1973 | public function testGetObjectAttributeRaisesExceptionForInvalidSecondArgument() |
||
| 1977 | |||
| 1978 | /** |
||
| 1979 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1980 | * @expectedException PHPUnit_Framework_Exception |
||
| 1981 | */ |
||
| 1982 | public function testGetObjectAttributeRaisesExceptionForInvalidSecondArgument2() |
||
| 1986 | |||
| 1987 | /** |
||
| 1988 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1989 | * @expectedException PHPUnit_Framework_Exception |
||
| 1990 | */ |
||
| 1991 | public function testGetObjectAttributeRaisesExceptionForInvalidSecondArgument3() |
||
| 1995 | |||
| 1996 | /** |
||
| 1997 | * @covers PHPUnit_Framework_Assert::getObjectAttribute |
||
| 1998 | */ |
||
| 1999 | public function testGetObjectAttributeWorksForInheritedAttributes() |
||
| 2006 | |||
| 2007 | /** |
||
| 2008 | * @covers PHPUnit_Framework_Assert::assertAttributeContains |
||
| 2009 | */ |
||
| 2010 | public function testAssertPublicAttributeContains() |
||
| 2024 | |||
| 2025 | /** |
||
| 2026 | * @covers PHPUnit_Framework_Assert::assertAttributeContainsOnly |
||
| 2027 | */ |
||
| 2028 | View Code Duplication | public function testAssertPublicAttributeContainsOnly() |
|
| 2042 | |||
| 2043 | /** |
||
| 2044 | * @covers PHPUnit_Framework_Assert::assertAttributeNotContains |
||
| 2045 | */ |
||
| 2046 | public function testAssertPublicAttributeNotContains() |
||
| 2060 | |||
| 2061 | /** |
||
| 2062 | * @covers PHPUnit_Framework_Assert::assertAttributeNotContainsOnly |
||
| 2063 | */ |
||
| 2064 | View Code Duplication | public function testAssertPublicAttributeNotContainsOnly() |
|
| 2078 | |||
| 2079 | /** |
||
| 2080 | * @covers PHPUnit_Framework_Assert::assertAttributeContains |
||
| 2081 | */ |
||
| 2082 | public function testAssertProtectedAttributeContains() |
||
| 2096 | |||
| 2097 | /** |
||
| 2098 | * @covers PHPUnit_Framework_Assert::assertAttributeNotContains |
||
| 2099 | */ |
||
| 2100 | public function testAssertProtectedAttributeNotContains() |
||
| 2114 | |||
| 2115 | /** |
||
| 2116 | * @covers PHPUnit_Framework_Assert::assertAttributeContains |
||
| 2117 | */ |
||
| 2118 | public function testAssertPrivateAttributeContains() |
||
| 2132 | |||
| 2133 | /** |
||
| 2134 | * @covers PHPUnit_Framework_Assert::assertAttributeNotContains |
||
| 2135 | */ |
||
| 2136 | public function testAssertPrivateAttributeNotContains() |
||
| 2150 | |||
| 2151 | /** |
||
| 2152 | * @covers PHPUnit_Framework_Assert::assertAttributeContains |
||
| 2153 | */ |
||
| 2154 | View Code Duplication | public function testAssertAttributeContainsNonObject() |
|
| 2168 | |||
| 2169 | /** |
||
| 2170 | * @covers PHPUnit_Framework_Assert::assertAttributeNotContains |
||
| 2171 | */ |
||
| 2172 | View Code Duplication | public function testAssertAttributeNotContainsNonObject() |
|
| 2186 | |||
| 2187 | /** |
||
| 2188 | * @covers PHPUnit_Framework_Assert::assertAttributeEquals |
||
| 2189 | */ |
||
| 2190 | public function testAssertPublicAttributeEquals() |
||
| 2204 | |||
| 2205 | /** |
||
| 2206 | * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals |
||
| 2207 | */ |
||
| 2208 | public function testAssertPublicAttributeNotEquals() |
||
| 2222 | |||
| 2223 | /** |
||
| 2224 | * @covers PHPUnit_Framework_Assert::assertAttributeSame |
||
| 2225 | */ |
||
| 2226 | public function testAssertPublicAttributeSame() |
||
| 2240 | |||
| 2241 | /** |
||
| 2242 | * @covers PHPUnit_Framework_Assert::assertAttributeNotSame |
||
| 2243 | */ |
||
| 2244 | public function testAssertPublicAttributeNotSame() |
||
| 2258 | |||
| 2259 | /** |
||
| 2260 | * @covers PHPUnit_Framework_Assert::assertAttributeEquals |
||
| 2261 | */ |
||
| 2262 | public function testAssertProtectedAttributeEquals() |
||
| 2276 | |||
| 2277 | /** |
||
| 2278 | * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals |
||
| 2279 | */ |
||
| 2280 | public function testAssertProtectedAttributeNotEquals() |
||
| 2294 | |||
| 2295 | /** |
||
| 2296 | * @covers PHPUnit_Framework_Assert::assertAttributeEquals |
||
| 2297 | */ |
||
| 2298 | public function testAssertPrivateAttributeEquals() |
||
| 2312 | |||
| 2313 | /** |
||
| 2314 | * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals |
||
| 2315 | */ |
||
| 2316 | public function testAssertPrivateAttributeNotEquals() |
||
| 2330 | |||
| 2331 | /** |
||
| 2332 | * @covers PHPUnit_Framework_Assert::assertAttributeEquals |
||
| 2333 | */ |
||
| 2334 | public function testAssertPublicStaticAttributeEquals() |
||
| 2346 | |||
| 2347 | /** |
||
| 2348 | * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals |
||
| 2349 | */ |
||
| 2350 | public function testAssertPublicStaticAttributeNotEquals() |
||
| 2362 | |||
| 2363 | /** |
||
| 2364 | * @covers PHPUnit_Framework_Assert::assertAttributeEquals |
||
| 2365 | */ |
||
| 2366 | public function testAssertProtectedStaticAttributeEquals() |
||
| 2378 | |||
| 2379 | /** |
||
| 2380 | * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals |
||
| 2381 | */ |
||
| 2382 | public function testAssertProtectedStaticAttributeNotEquals() |
||
| 2394 | |||
| 2395 | /** |
||
| 2396 | * @covers PHPUnit_Framework_Assert::assertAttributeEquals |
||
| 2397 | */ |
||
| 2398 | public function testAssertPrivateStaticAttributeEquals() |
||
| 2410 | |||
| 2411 | /** |
||
| 2412 | * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals |
||
| 2413 | */ |
||
| 2414 | public function testAssertPrivateStaticAttributeNotEquals() |
||
| 2426 | |||
| 2427 | /** |
||
| 2428 | * @covers PHPUnit_Framework_Assert::assertClassHasAttribute |
||
| 2429 | * @expectedException PHPUnit_Framework_Exception |
||
| 2430 | */ |
||
| 2431 | public function testAssertClassHasAttributeThrowsException() |
||
| 2435 | |||
| 2436 | /** |
||
| 2437 | * @covers PHPUnit_Framework_Assert::assertClassHasAttribute |
||
| 2438 | * @expectedException PHPUnit_Framework_Exception |
||
| 2439 | */ |
||
| 2440 | public function testAssertClassHasAttributeThrowsException2() |
||
| 2444 | |||
| 2445 | /** |
||
| 2446 | * @covers PHPUnit_Framework_Assert::assertClassHasAttribute |
||
| 2447 | * @expectedException PHPUnit_Framework_Exception |
||
| 2448 | */ |
||
| 2449 | public function testAssertClassHasAttributeThrowsExceptionIfAttributeNameIsNotValid() |
||
| 2453 | |||
| 2454 | /** |
||
| 2455 | * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute |
||
| 2456 | * @expectedException PHPUnit_Framework_Exception |
||
| 2457 | */ |
||
| 2458 | public function testAssertClassNotHasAttributeThrowsException() |
||
| 2462 | |||
| 2463 | /** |
||
| 2464 | * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute |
||
| 2465 | * @expectedException PHPUnit_Framework_Exception |
||
| 2466 | */ |
||
| 2467 | public function testAssertClassNotHasAttributeThrowsException2() |
||
| 2471 | |||
| 2472 | /** |
||
| 2473 | * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute |
||
| 2474 | * @expectedException PHPUnit_Framework_Exception |
||
| 2475 | */ |
||
| 2476 | public function testAssertClassNotHasAttributeThrowsExceptionIfAttributeNameIsNotValid() |
||
| 2480 | |||
| 2481 | /** |
||
| 2482 | * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute |
||
| 2483 | * @expectedException PHPUnit_Framework_Exception |
||
| 2484 | */ |
||
| 2485 | public function testAssertClassHasStaticAttributeThrowsException() |
||
| 2489 | |||
| 2490 | /** |
||
| 2491 | * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute |
||
| 2492 | * @expectedException PHPUnit_Framework_Exception |
||
| 2493 | */ |
||
| 2494 | public function testAssertClassHasStaticAttributeThrowsException2() |
||
| 2498 | |||
| 2499 | /** |
||
| 2500 | * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute |
||
| 2501 | * @expectedException PHPUnit_Framework_Exception |
||
| 2502 | */ |
||
| 2503 | public function testAssertClassHasStaticAttributeThrowsExceptionIfAttributeNameIsNotValid() |
||
| 2507 | |||
| 2508 | /** |
||
| 2509 | * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute |
||
| 2510 | * @expectedException PHPUnit_Framework_Exception |
||
| 2511 | */ |
||
| 2512 | public function testAssertClassNotHasStaticAttributeThrowsException() |
||
| 2516 | |||
| 2517 | /** |
||
| 2518 | * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute |
||
| 2519 | * @expectedException PHPUnit_Framework_Exception |
||
| 2520 | */ |
||
| 2521 | public function testAssertClassNotHasStaticAttributeThrowsException2() |
||
| 2525 | |||
| 2526 | /** |
||
| 2527 | * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute |
||
| 2528 | * @expectedException PHPUnit_Framework_Exception |
||
| 2529 | */ |
||
| 2530 | public function testAssertClassNotHasStaticAttributeThrowsExceptionIfAttributeNameIsNotValid() |
||
| 2534 | |||
| 2535 | /** |
||
| 2536 | * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute |
||
| 2537 | * @expectedException PHPUnit_Framework_Exception |
||
| 2538 | */ |
||
| 2539 | public function testAssertObjectHasAttributeThrowsException() |
||
| 2543 | |||
| 2544 | /** |
||
| 2545 | * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute |
||
| 2546 | * @expectedException PHPUnit_Framework_Exception |
||
| 2547 | */ |
||
| 2548 | public function testAssertObjectHasAttributeThrowsException2() |
||
| 2552 | |||
| 2553 | /** |
||
| 2554 | * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute |
||
| 2555 | * @expectedException PHPUnit_Framework_Exception |
||
| 2556 | */ |
||
| 2557 | public function testAssertObjectHasAttributeThrowsExceptionIfAttributeNameIsNotValid() |
||
| 2561 | |||
| 2562 | /** |
||
| 2563 | * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute |
||
| 2564 | * @expectedException PHPUnit_Framework_Exception |
||
| 2565 | */ |
||
| 2566 | public function testAssertObjectNotHasAttributeThrowsException() |
||
| 2570 | |||
| 2571 | /** |
||
| 2572 | * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute |
||
| 2573 | * @expectedException PHPUnit_Framework_Exception |
||
| 2574 | */ |
||
| 2575 | public function testAssertObjectNotHasAttributeThrowsException2() |
||
| 2579 | |||
| 2580 | /** |
||
| 2581 | * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute |
||
| 2582 | * @expectedException PHPUnit_Framework_Exception |
||
| 2583 | */ |
||
| 2584 | public function testAssertObjectNotHasAttributeThrowsExceptionIfAttributeNameIsNotValid() |
||
| 2588 | |||
| 2589 | /** |
||
| 2590 | * @covers PHPUnit_Framework_Assert::assertClassHasAttribute |
||
| 2591 | */ |
||
| 2592 | public function testClassHasPublicAttribute() |
||
| 2604 | |||
| 2605 | /** |
||
| 2606 | * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute |
||
| 2607 | */ |
||
| 2608 | public function testClassNotHasPublicAttribute() |
||
| 2620 | |||
| 2621 | /** |
||
| 2622 | * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute |
||
| 2623 | */ |
||
| 2624 | public function testClassHasPublicStaticAttribute() |
||
| 2636 | |||
| 2637 | /** |
||
| 2638 | * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute |
||
| 2639 | */ |
||
| 2640 | public function testClassNotHasPublicStaticAttribute() |
||
| 2652 | |||
| 2653 | /** |
||
| 2654 | * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute |
||
| 2655 | */ |
||
| 2656 | public function testObjectHasPublicAttribute() |
||
| 2670 | |||
| 2671 | /** |
||
| 2672 | * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute |
||
| 2673 | */ |
||
| 2674 | View Code Duplication | public function testObjectNotHasPublicAttribute() |
|
| 2688 | |||
| 2689 | /** |
||
| 2690 | * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute |
||
| 2691 | */ |
||
| 2692 | View Code Duplication | public function testObjectHasOnTheFlyAttribute() |
|
| 2707 | |||
| 2708 | /** |
||
| 2709 | * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute |
||
| 2710 | */ |
||
| 2711 | View Code Duplication | public function testObjectNotHasOnTheFlyAttribute() |
|
| 2726 | |||
| 2727 | /** |
||
| 2728 | * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute |
||
| 2729 | */ |
||
| 2730 | View Code Duplication | public function testObjectHasProtectedAttribute() |
|
| 2744 | |||
| 2745 | /** |
||
| 2746 | * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute |
||
| 2747 | */ |
||
| 2748 | View Code Duplication | public function testObjectNotHasProtectedAttribute() |
|
| 2762 | |||
| 2763 | /** |
||
| 2764 | * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute |
||
| 2765 | */ |
||
| 2766 | public function testObjectHasPrivateAttribute() |
||
| 2780 | |||
| 2781 | /** |
||
| 2782 | * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute |
||
| 2783 | */ |
||
| 2784 | View Code Duplication | public function testObjectNotHasPrivateAttribute() |
|
| 2798 | |||
| 2799 | /** |
||
| 2800 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2801 | * @covers PHPUnit_Framework_Assert::attribute |
||
| 2802 | * @covers PHPUnit_Framework_Assert::equalTo |
||
| 2803 | */ |
||
| 2804 | public function testAssertThatAttributeEquals() |
||
| 2814 | |||
| 2815 | /** |
||
| 2816 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2817 | * @covers PHPUnit_Framework_Assert::attribute |
||
| 2818 | * @covers PHPUnit_Framework_Assert::equalTo |
||
| 2819 | * @expectedException PHPUnit_Framework_AssertionFailedError |
||
| 2820 | */ |
||
| 2821 | public function testAssertThatAttributeEquals2() |
||
| 2831 | |||
| 2832 | /** |
||
| 2833 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2834 | * @covers PHPUnit_Framework_Assert::attribute |
||
| 2835 | * @covers PHPUnit_Framework_Assert::equalTo |
||
| 2836 | */ |
||
| 2837 | public function testAssertThatAttributeEqualTo() |
||
| 2844 | |||
| 2845 | /** |
||
| 2846 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2847 | * @covers PHPUnit_Framework_Assert::anything |
||
| 2848 | */ |
||
| 2849 | public function testAssertThatAnything() |
||
| 2853 | |||
| 2854 | /** |
||
| 2855 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2856 | * @covers PHPUnit_Framework_Assert::isTrue |
||
| 2857 | */ |
||
| 2858 | public function testAssertThatIsTrue() |
||
| 2862 | |||
| 2863 | /** |
||
| 2864 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2865 | * @covers PHPUnit_Framework_Assert::isFalse |
||
| 2866 | */ |
||
| 2867 | public function testAssertThatIsFalse() |
||
| 2871 | |||
| 2872 | /** |
||
| 2873 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2874 | * @covers PHPUnit_Framework_Assert::isJson |
||
| 2875 | */ |
||
| 2876 | public function testAssertThatIsJson() |
||
| 2880 | |||
| 2881 | /** |
||
| 2882 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2883 | * @covers PHPUnit_Framework_Assert::anything |
||
| 2884 | * @covers PHPUnit_Framework_Assert::logicalAnd |
||
| 2885 | */ |
||
| 2886 | public function testAssertThatAnythingAndAnything() |
||
| 2895 | |||
| 2896 | /** |
||
| 2897 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2898 | * @covers PHPUnit_Framework_Assert::anything |
||
| 2899 | * @covers PHPUnit_Framework_Assert::logicalOr |
||
| 2900 | */ |
||
| 2901 | public function testAssertThatAnythingOrAnything() |
||
| 2910 | |||
| 2911 | /** |
||
| 2912 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2913 | * @covers PHPUnit_Framework_Assert::anything |
||
| 2914 | * @covers PHPUnit_Framework_Assert::logicalNot |
||
| 2915 | * @covers PHPUnit_Framework_Assert::logicalXor |
||
| 2916 | */ |
||
| 2917 | public function testAssertThatAnythingXorNotAnything() |
||
| 2927 | |||
| 2928 | /** |
||
| 2929 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2930 | * @covers PHPUnit_Framework_Assert::contains |
||
| 2931 | */ |
||
| 2932 | public function testAssertThatContains() |
||
| 2936 | |||
| 2937 | /** |
||
| 2938 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2939 | * @covers PHPUnit_Framework_Assert::stringContains |
||
| 2940 | */ |
||
| 2941 | public function testAssertThatStringContains() |
||
| 2945 | |||
| 2946 | /** |
||
| 2947 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2948 | * @covers PHPUnit_Framework_Assert::containsOnly |
||
| 2949 | */ |
||
| 2950 | public function testAssertThatContainsOnly() |
||
| 2954 | /** |
||
| 2955 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2956 | * @covers PHPUnit_Framework_Assert::containsOnlyInstancesOf |
||
| 2957 | */ |
||
| 2958 | public function testAssertThatContainsOnlyInstancesOf() |
||
| 2962 | |||
| 2963 | /** |
||
| 2964 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2965 | * @covers PHPUnit_Framework_Assert::arrayHasKey |
||
| 2966 | */ |
||
| 2967 | public function testAssertThatArrayHasKey() |
||
| 2971 | |||
| 2972 | /** |
||
| 2973 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2974 | * @covers PHPUnit_Framework_Assert::classHasAttribute |
||
| 2975 | */ |
||
| 2976 | public function testAssertThatClassHasAttribute() |
||
| 2983 | |||
| 2984 | /** |
||
| 2985 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2986 | * @covers PHPUnit_Framework_Assert::classHasStaticAttribute |
||
| 2987 | */ |
||
| 2988 | public function testAssertThatClassHasStaticAttribute() |
||
| 2995 | |||
| 2996 | /** |
||
| 2997 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 2998 | * @covers PHPUnit_Framework_Assert::objectHasAttribute |
||
| 2999 | */ |
||
| 3000 | public function testAssertThatObjectHasAttribute() |
||
| 3007 | |||
| 3008 | /** |
||
| 3009 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3010 | * @covers PHPUnit_Framework_Assert::equalTo |
||
| 3011 | */ |
||
| 3012 | public function testAssertThatEqualTo() |
||
| 3016 | |||
| 3017 | /** |
||
| 3018 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3019 | * @covers PHPUnit_Framework_Assert::identicalTo |
||
| 3020 | */ |
||
| 3021 | public function testAssertThatIdenticalTo() |
||
| 3028 | |||
| 3029 | /** |
||
| 3030 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3031 | * @covers PHPUnit_Framework_Assert::isInstanceOf |
||
| 3032 | */ |
||
| 3033 | public function testAssertThatIsInstanceOf() |
||
| 3037 | |||
| 3038 | /** |
||
| 3039 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3040 | * @covers PHPUnit_Framework_Assert::isType |
||
| 3041 | */ |
||
| 3042 | public function testAssertThatIsType() |
||
| 3046 | |||
| 3047 | /** |
||
| 3048 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3049 | * @covers PHPUnit_Framework_Assert::isEmpty |
||
| 3050 | */ |
||
| 3051 | public function testAssertThatIsEmpty() |
||
| 3055 | |||
| 3056 | /** |
||
| 3057 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3058 | * @covers PHPUnit_Framework_Assert::fileExists |
||
| 3059 | */ |
||
| 3060 | public function testAssertThatFileExists() |
||
| 3064 | |||
| 3065 | /** |
||
| 3066 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3067 | * @covers PHPUnit_Framework_Assert::greaterThan |
||
| 3068 | */ |
||
| 3069 | public function testAssertThatGreaterThan() |
||
| 3073 | |||
| 3074 | /** |
||
| 3075 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3076 | * @covers PHPUnit_Framework_Assert::greaterThanOrEqual |
||
| 3077 | */ |
||
| 3078 | public function testAssertThatGreaterThanOrEqual() |
||
| 3082 | |||
| 3083 | /** |
||
| 3084 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3085 | * @covers PHPUnit_Framework_Assert::lessThan |
||
| 3086 | */ |
||
| 3087 | public function testAssertThatLessThan() |
||
| 3091 | |||
| 3092 | /** |
||
| 3093 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3094 | * @covers PHPUnit_Framework_Assert::lessThanOrEqual |
||
| 3095 | */ |
||
| 3096 | public function testAssertThatLessThanOrEqual() |
||
| 3100 | |||
| 3101 | /** |
||
| 3102 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3103 | * @covers PHPUnit_Framework_Assert::matchesRegularExpression |
||
| 3104 | */ |
||
| 3105 | public function testAssertThatMatchesRegularExpression() |
||
| 3109 | |||
| 3110 | /** |
||
| 3111 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3112 | * @covers PHPUnit_Framework_Assert::callback |
||
| 3113 | */ |
||
| 3114 | public function testAssertThatCallback() |
||
| 3121 | |||
| 3122 | /** |
||
| 3123 | * @covers PHPUnit_Framework_Assert::assertThat |
||
| 3124 | * @covers PHPUnit_Framework_Assert::countOf |
||
| 3125 | */ |
||
| 3126 | public function testAssertThatCountOf() |
||
| 3130 | |||
| 3131 | /** |
||
| 3132 | * @covers PHPUnit_Framework_Assert::assertFileEquals |
||
| 3133 | */ |
||
| 3134 | View Code Duplication | public function testAssertFileEquals() |
|
| 3152 | |||
| 3153 | /** |
||
| 3154 | * @covers PHPUnit_Framework_Assert::assertFileNotEquals |
||
| 3155 | */ |
||
| 3156 | View Code Duplication | public function testAssertFileNotEquals() |
|
| 3174 | |||
| 3175 | /** |
||
| 3176 | * @covers PHPUnit_Framework_Assert::assertStringEqualsFile |
||
| 3177 | */ |
||
| 3178 | View Code Duplication | public function testAssertStringEqualsFile() |
|
| 3196 | |||
| 3197 | /** |
||
| 3198 | * @covers PHPUnit_Framework_Assert::assertStringNotEqualsFile |
||
| 3199 | */ |
||
| 3200 | View Code Duplication | public function testAssertStringNotEqualsFile() |
|
| 3218 | |||
| 3219 | /** |
||
| 3220 | * @covers PHPUnit_Framework_Assert::assertStringStartsWith |
||
| 3221 | * @expectedException PHPUnit_Framework_Exception |
||
| 3222 | */ |
||
| 3223 | public function testAssertStringStartsWithThrowsException() |
||
| 3227 | |||
| 3228 | /** |
||
| 3229 | * @covers PHPUnit_Framework_Assert::assertStringStartsWith |
||
| 3230 | * @expectedException PHPUnit_Framework_Exception |
||
| 3231 | */ |
||
| 3232 | public function testAssertStringStartsWithThrowsException2() |
||
| 3236 | |||
| 3237 | /** |
||
| 3238 | * @covers PHPUnit_Framework_Assert::assertStringStartsNotWith |
||
| 3239 | * @expectedException PHPUnit_Framework_Exception |
||
| 3240 | */ |
||
| 3241 | public function testAssertStringStartsNotWithThrowsException() |
||
| 3245 | |||
| 3246 | /** |
||
| 3247 | * @covers PHPUnit_Framework_Assert::assertStringStartsNotWith |
||
| 3248 | * @expectedException PHPUnit_Framework_Exception |
||
| 3249 | */ |
||
| 3250 | public function testAssertStringStartsNotWithThrowsException2() |
||
| 3254 | |||
| 3255 | /** |
||
| 3256 | * @covers PHPUnit_Framework_Assert::assertStringEndsWith |
||
| 3257 | * @expectedException PHPUnit_Framework_Exception |
||
| 3258 | */ |
||
| 3259 | public function testAssertStringEndsWithThrowsException() |
||
| 3263 | |||
| 3264 | /** |
||
| 3265 | * @covers PHPUnit_Framework_Assert::assertStringEndsWith |
||
| 3266 | * @expectedException PHPUnit_Framework_Exception |
||
| 3267 | */ |
||
| 3268 | public function testAssertStringEndsWithThrowsException2() |
||
| 3272 | |||
| 3273 | /** |
||
| 3274 | * @covers PHPUnit_Framework_Assert::assertStringEndsNotWith |
||
| 3275 | * @expectedException PHPUnit_Framework_Exception |
||
| 3276 | */ |
||
| 3277 | public function testAssertStringEndsNotWithThrowsException() |
||
| 3281 | |||
| 3282 | /** |
||
| 3283 | * @covers PHPUnit_Framework_Assert::assertStringEndsNotWith |
||
| 3284 | * @expectedException PHPUnit_Framework_Exception |
||
| 3285 | */ |
||
| 3286 | public function testAssertStringEndsNotWithThrowsException2() |
||
| 3290 | |||
| 3291 | /** |
||
| 3292 | * @covers PHPUnit_Framework_Assert::assertStringStartsWith |
||
| 3293 | */ |
||
| 3294 | public function testAssertStringStartsWith() |
||
| 3306 | |||
| 3307 | /** |
||
| 3308 | * @covers PHPUnit_Framework_Assert::assertStringStartsNotWith |
||
| 3309 | */ |
||
| 3310 | public function testAssertStringStartsNotWith() |
||
| 3322 | |||
| 3323 | /** |
||
| 3324 | * @covers PHPUnit_Framework_Assert::assertStringEndsWith |
||
| 3325 | */ |
||
| 3326 | public function testAssertStringEndsWith() |
||
| 3338 | |||
| 3339 | /** |
||
| 3340 | * @covers PHPUnit_Framework_Assert::assertStringEndsNotWith |
||
| 3341 | */ |
||
| 3342 | public function testAssertStringEndsNotWith() |
||
| 3354 | |||
| 3355 | /** |
||
| 3356 | * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat |
||
| 3357 | * @expectedException PHPUnit_Framework_Exception |
||
| 3358 | */ |
||
| 3359 | public function testAssertStringMatchesFormatRaisesExceptionForInvalidFirstArgument() |
||
| 3363 | |||
| 3364 | /** |
||
| 3365 | * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat |
||
| 3366 | * @expectedException PHPUnit_Framework_Exception |
||
| 3367 | */ |
||
| 3368 | public function testAssertStringMatchesFormatRaisesExceptionForInvalidSecondArgument() |
||
| 3372 | |||
| 3373 | /** |
||
| 3374 | * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat |
||
| 3375 | */ |
||
| 3376 | public function testAssertStringMatchesFormat() |
||
| 3380 | |||
| 3381 | /** |
||
| 3382 | * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat |
||
| 3383 | * @expectedException PHPUnit_Framework_AssertionFailedError |
||
| 3384 | */ |
||
| 3385 | public function testAssertStringMatchesFormatFailure() |
||
| 3389 | |||
| 3390 | /** |
||
| 3391 | * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormat |
||
| 3392 | * @expectedException PHPUnit_Framework_Exception |
||
| 3393 | */ |
||
| 3394 | public function testAssertStringNotMatchesFormatRaisesExceptionForInvalidFirstArgument() |
||
| 3398 | |||
| 3399 | /** |
||
| 3400 | * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormat |
||
| 3401 | * @expectedException PHPUnit_Framework_Exception |
||
| 3402 | */ |
||
| 3403 | public function testAssertStringNotMatchesFormatRaisesExceptionForInvalidSecondArgument() |
||
| 3407 | |||
| 3408 | /** |
||
| 3409 | * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormat |
||
| 3410 | */ |
||
| 3411 | public function testAssertStringNotMatchesFormat() |
||
| 3423 | |||
| 3424 | /** |
||
| 3425 | * @covers PHPUnit_Framework_Assert::assertEmpty |
||
| 3426 | */ |
||
| 3427 | public function testAssertEmpty() |
||
| 3439 | |||
| 3440 | /** |
||
| 3441 | * @covers PHPUnit_Framework_Assert::assertNotEmpty |
||
| 3442 | */ |
||
| 3443 | public function testAssertNotEmpty() |
||
| 3455 | |||
| 3456 | /** |
||
| 3457 | * @covers PHPUnit_Framework_Assert::assertAttributeEmpty |
||
| 3458 | */ |
||
| 3459 | View Code Duplication | public function testAssertAttributeEmpty() |
|
| 3475 | |||
| 3476 | /** |
||
| 3477 | * @covers PHPUnit_Framework_Assert::assertAttributeNotEmpty |
||
| 3478 | */ |
||
| 3479 | View Code Duplication | public function testAssertAttributeNotEmpty() |
|
| 3495 | |||
| 3496 | /** |
||
| 3497 | * @covers PHPUnit_Framework_Assert::markTestIncomplete |
||
| 3498 | */ |
||
| 3499 | public function testMarkTestIncomplete() |
||
| 3511 | |||
| 3512 | /** |
||
| 3513 | * @covers PHPUnit_Framework_Assert::markTestSkipped |
||
| 3514 | */ |
||
| 3515 | public function testMarkTestSkipped() |
||
| 3527 | |||
| 3528 | /** |
||
| 3529 | * @covers PHPUnit_Framework_Assert::assertCount |
||
| 3530 | */ |
||
| 3531 | View Code Duplication | public function testAssertCount() |
|
| 3543 | |||
| 3544 | /** |
||
| 3545 | * @covers PHPUnit_Framework_Assert::assertCount |
||
| 3546 | */ |
||
| 3547 | View Code Duplication | public function testAssertCountTraversable() |
|
| 3559 | |||
| 3560 | /** |
||
| 3561 | * @covers PHPUnit_Framework_Assert::assertCount |
||
| 3562 | */ |
||
| 3563 | public function testAssertCountThrowsExceptionIfExpectedCountIsNoInteger() |
||
| 3575 | |||
| 3576 | /** |
||
| 3577 | * @covers PHPUnit_Framework_Assert::assertCount |
||
| 3578 | */ |
||
| 3579 | public function testAssertCountThrowsExceptionIfElementIsNotCountable() |
||
| 3591 | |||
| 3592 | /** |
||
| 3593 | * @covers PHPUnit_Framework_Assert::assertAttributeCount |
||
| 3594 | */ |
||
| 3595 | public function testAssertAttributeCount() |
||
| 3602 | |||
| 3603 | /** |
||
| 3604 | * @covers PHPUnit_Framework_Assert::assertNotCount |
||
| 3605 | */ |
||
| 3606 | public function testAssertNotCount() |
||
| 3618 | |||
| 3619 | /** |
||
| 3620 | * @covers PHPUnit_Framework_Assert::assertNotCount |
||
| 3621 | * @expectedException PHPUnit_Framework_Exception |
||
| 3622 | */ |
||
| 3623 | public function testAssertNotCountThrowsExceptionIfExpectedCountIsNoInteger() |
||
| 3627 | |||
| 3628 | /** |
||
| 3629 | * @covers PHPUnit_Framework_Assert::assertNotCount |
||
| 3630 | * @expectedException PHPUnit_Framework_Exception |
||
| 3631 | */ |
||
| 3632 | public function testAssertNotCountThrowsExceptionIfElementIsNotCountable() |
||
| 3636 | |||
| 3637 | /** |
||
| 3638 | * @covers PHPUnit_Framework_Assert::assertAttributeNotCount |
||
| 3639 | */ |
||
| 3640 | public function testAssertAttributeNotCount() |
||
| 3647 | |||
| 3648 | /** |
||
| 3649 | * @covers PHPUnit_Framework_Assert::assertSameSize |
||
| 3650 | */ |
||
| 3651 | View Code Duplication | public function testAssertSameSize() |
|
| 3663 | |||
| 3664 | /** |
||
| 3665 | * @covers PHPUnit_Framework_Assert::assertSameSize |
||
| 3666 | */ |
||
| 3667 | public function testAssertSameSizeThrowsExceptionIfExpectedIsNotCountable() |
||
| 3679 | |||
| 3680 | /** |
||
| 3681 | * @covers PHPUnit_Framework_Assert::assertSameSize |
||
| 3682 | */ |
||
| 3683 | public function testAssertSameSizeThrowsExceptionIfActualIsNotCountable() |
||
| 3695 | |||
| 3696 | /** |
||
| 3697 | * @covers PHPUnit_Framework_Assert::assertNotSameSize |
||
| 3698 | */ |
||
| 3699 | View Code Duplication | public function testAssertNotSameSize() |
|
| 3711 | |||
| 3712 | /** |
||
| 3713 | * @covers PHPUnit_Framework_Assert::assertNotSameSize |
||
| 3714 | * @expectedException PHPUnit_Framework_Exception |
||
| 3715 | */ |
||
| 3716 | public function testAssertNotSameSizeThrowsExceptionIfExpectedIsNotCountable() |
||
| 3720 | |||
| 3721 | /** |
||
| 3722 | * @covers PHPUnit_Framework_Assert::assertNotSameSize |
||
| 3723 | * @expectedException PHPUnit_Framework_Exception |
||
| 3724 | */ |
||
| 3725 | public function testAssertNotSameSizeThrowsExceptionIfActualIsNotCountable() |
||
| 3729 | |||
| 3730 | /** |
||
| 3731 | * @covers PHPUnit_Framework_Assert::assertJson |
||
| 3732 | * @expectedException PHPUnit_Framework_Exception |
||
| 3733 | */ |
||
| 3734 | public function testAssertJsonRaisesExceptionForInvalidArgument() |
||
| 3738 | |||
| 3739 | /** |
||
| 3740 | * @covers PHPUnit_Framework_Assert::assertJson |
||
| 3741 | */ |
||
| 3742 | public function testAssertJson() |
||
| 3746 | |||
| 3747 | /** |
||
| 3748 | * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString |
||
| 3749 | */ |
||
| 3750 | public function testAssertJsonStringEqualsJsonString() |
||
| 3758 | |||
| 3759 | /** |
||
| 3760 | * @dataProvider validInvalidJsonDataprovider |
||
| 3761 | * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString |
||
| 3762 | */ |
||
| 3763 | public function testAssertJsonStringEqualsJsonStringErrorRaised($expected, $actual) |
||
| 3772 | |||
| 3773 | /** |
||
| 3774 | * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString |
||
| 3775 | */ |
||
| 3776 | public function testAssertJsonStringNotEqualsJsonString() |
||
| 3784 | |||
| 3785 | /** |
||
| 3786 | * @dataProvider validInvalidJsonDataprovider |
||
| 3787 | * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString |
||
| 3788 | */ |
||
| 3789 | public function testAssertJsonStringNotEqualsJsonStringErrorRaised($expected, $actual) |
||
| 3798 | |||
| 3799 | /** |
||
| 3800 | * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile |
||
| 3801 | */ |
||
| 3802 | View Code Duplication | public function testAssertJsonStringEqualsJsonFile() |
|
| 3809 | |||
| 3810 | /** |
||
| 3811 | * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile |
||
| 3812 | */ |
||
| 3813 | public function testAssertJsonStringEqualsJsonFileExpectingExpectationFailedException() |
||
| 3831 | |||
| 3832 | /** |
||
| 3833 | * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile |
||
| 3834 | */ |
||
| 3835 | public function testAssertJsonStringEqualsJsonFileExpectingException() |
||
| 3845 | |||
| 3846 | /** |
||
| 3847 | * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile |
||
| 3848 | */ |
||
| 3849 | View Code Duplication | public function testAssertJsonStringNotEqualsJsonFile() |
|
| 3856 | |||
| 3857 | /** |
||
| 3858 | * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile |
||
| 3859 | */ |
||
| 3860 | public function testAssertJsonStringNotEqualsJsonFileExpectingException() |
||
| 3870 | |||
| 3871 | /** |
||
| 3872 | * @covers PHPUnit_Framework_Assert::assertJsonFileNotEqualsJsonFile |
||
| 3873 | */ |
||
| 3874 | public function testAssertJsonFileNotEqualsJsonFile() |
||
| 3881 | |||
| 3882 | /** |
||
| 3883 | * @covers PHPUnit_Framework_Assert::assertJsonFileEqualsJsonFile |
||
| 3884 | */ |
||
| 3885 | public function testAssertJsonFileEqualsJsonFile() |
||
| 3891 | |||
| 3892 | /** |
||
| 3893 | * @covers PHPUnit_Framework_Assert::assertInstanceOf |
||
| 3894 | */ |
||
| 3895 | public function testAssertInstanceOf() |
||
| 3907 | |||
| 3908 | /** |
||
| 3909 | * @covers PHPUnit_Framework_Assert::assertInstanceOf |
||
| 3910 | * @expectedException PHPUnit_Framework_Exception |
||
| 3911 | */ |
||
| 3912 | public function testAssertInstanceOfThrowsExceptionForInvalidArgument() |
||
| 3916 | |||
| 3917 | /** |
||
| 3918 | * @covers PHPUnit_Framework_Assert::assertAttributeInstanceOf |
||
| 3919 | */ |
||
| 3920 | public function testAssertAttributeInstanceOf() |
||
| 3927 | |||
| 3928 | /** |
||
| 3929 | * @covers PHPUnit_Framework_Assert::assertNotInstanceOf |
||
| 3930 | */ |
||
| 3931 | public function testAssertNotInstanceOf() |
||
| 3943 | |||
| 3944 | /** |
||
| 3945 | * @covers PHPUnit_Framework_Assert::assertNotInstanceOf |
||
| 3946 | * @expectedException PHPUnit_Framework_Exception |
||
| 3947 | */ |
||
| 3948 | public function testAssertNotInstanceOfThrowsExceptionForInvalidArgument() |
||
| 3952 | |||
| 3953 | /** |
||
| 3954 | * @covers PHPUnit_Framework_Assert::assertAttributeNotInstanceOf |
||
| 3955 | */ |
||
| 3956 | public function testAssertAttributeNotInstanceOf() |
||
| 3963 | |||
| 3964 | /** |
||
| 3965 | * @covers PHPUnit_Framework_Assert::assertInternalType |
||
| 3966 | */ |
||
| 3967 | public function testAssertInternalType() |
||
| 3979 | |||
| 3980 | /** |
||
| 3981 | * @covers PHPUnit_Framework_Assert::assertInternalType |
||
| 3982 | */ |
||
| 3983 | public function testAssertInternalTypeDouble() |
||
| 3995 | |||
| 3996 | /** |
||
| 3997 | * @covers PHPUnit_Framework_Assert::assertInternalType |
||
| 3998 | * @expectedException PHPUnit_Framework_Exception |
||
| 3999 | */ |
||
| 4000 | public function testAssertInternalTypeThrowsExceptionForInvalidArgument() |
||
| 4004 | |||
| 4005 | /** |
||
| 4006 | * @covers PHPUnit_Framework_Assert::assertAttributeInternalType |
||
| 4007 | */ |
||
| 4008 | public function testAssertAttributeInternalType() |
||
| 4015 | |||
| 4016 | /** |
||
| 4017 | * @covers PHPUnit_Framework_Assert::assertNotInternalType |
||
| 4018 | */ |
||
| 4019 | public function testAssertNotInternalType() |
||
| 4031 | |||
| 4032 | /** |
||
| 4033 | * @covers PHPUnit_Framework_Assert::assertNotInternalType |
||
| 4034 | * @expectedException PHPUnit_Framework_Exception |
||
| 4035 | */ |
||
| 4036 | public function testAssertNotInternalTypeThrowsExceptionForInvalidArgument() |
||
| 4040 | |||
| 4041 | /** |
||
| 4042 | * @covers PHPUnit_Framework_Assert::assertAttributeNotInternalType |
||
| 4043 | */ |
||
| 4044 | public function testAssertAttributeNotInternalType() |
||
| 4051 | |||
| 4052 | /** |
||
| 4053 | * @covers PHPUnit_Framework_Assert::assertStringMatchesFormatFile |
||
| 4054 | * @expectedException PHPUnit_Framework_Exception |
||
| 4055 | */ |
||
| 4056 | public function testAssertStringMatchesFormatFileThrowsExceptionForInvalidArgument() |
||
| 4060 | |||
| 4061 | /** |
||
| 4062 | * @covers PHPUnit_Framework_Assert::assertStringMatchesFormatFile |
||
| 4063 | * @expectedException PHPUnit_Framework_Exception |
||
| 4064 | */ |
||
| 4065 | public function testAssertStringMatchesFormatFileThrowsExceptionForInvalidArgument2() |
||
| 4069 | |||
| 4070 | /** |
||
| 4071 | * @covers PHPUnit_Framework_Assert::assertStringMatchesFormatFile |
||
| 4072 | */ |
||
| 4073 | public function testAssertStringMatchesFormatFile() |
||
| 4085 | |||
| 4086 | /** |
||
| 4087 | * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile |
||
| 4088 | * @expectedException PHPUnit_Framework_Exception |
||
| 4089 | */ |
||
| 4090 | public function testAssertStringNotMatchesFormatFileThrowsExceptionForInvalidArgument() |
||
| 4094 | |||
| 4095 | /** |
||
| 4096 | * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile |
||
| 4097 | * @expectedException PHPUnit_Framework_Exception |
||
| 4098 | */ |
||
| 4099 | public function testAssertStringNotMatchesFormatFileThrowsExceptionForInvalidArgument2() |
||
| 4103 | |||
| 4104 | /** |
||
| 4105 | * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile |
||
| 4106 | */ |
||
| 4107 | public function testAssertStringNotMatchesFormatFile() |
||
| 4119 | |||
| 4120 | /** |
||
| 4121 | * @return array |
||
| 4122 | */ |
||
| 4123 | public static function validInvalidJsonDataprovider() |
||
| 4130 | } |
||
| 4131 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.