How to use func method of or class

Best AspectMock code snippet using or.func

Functions.php

Source:Functions.php Github

copy

Full Screen

...12 * zero or more times.13 *14 * @return PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount15 */16function any()17{18 return call_user_func_array(19 'PHPUnit_Framework_TestCase::any',20 func_get_args()21 );22}23/**24 * Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.25 *26 * @return PHPUnit_Framework_Constraint_IsAnything27 */28function anything()29{30 return call_user_func_array(31 'PHPUnit_Framework_Assert::anything',32 func_get_args()33 );34}35/**36 * Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.37 *38 * @param mixed $key39 *40 * @return PHPUnit_Framework_Constraint_ArrayHasKey41 */42function arrayHasKey($key)43{44 return call_user_func_array(45 'PHPUnit_Framework_Assert::arrayHasKey',46 func_get_args()47 );48}49/**50 * Asserts that an array has a specified key.51 *52 * @param mixed $key53 * @param array|ArrayAccess $array54 * @param string $message55 */56function assertArrayHasKey($key, $array, $message = '')57{58 return call_user_func_array(59 'PHPUnit_Framework_Assert::assertArrayHasKey',60 func_get_args()61 );62}63/**64 * Asserts that an array has a specified subset.65 *66 * @param array|ArrayAccess $subset67 * @param array|ArrayAccess $array68 * @param bool $strict Check for object identity69 * @param string $message70 */71function assertArraySubset($subset, $array, $strict = false, $message = '')72{73 return call_user_func_array(74 'PHPUnit_Framework_Assert::assertArraySubset',75 func_get_args()76 );77}78/**79 * Asserts that an array does not have a specified key.80 *81 * @param mixed $key82 * @param array|ArrayAccess $array83 * @param string $message84 */85function assertArrayNotHasKey($key, $array, $message = '')86{87 return call_user_func_array(88 'PHPUnit_Framework_Assert::assertArrayNotHasKey',89 func_get_args()90 );91}92/**93 * Asserts that a haystack that is stored in a static attribute of a class94 * or an attribute of an object contains a needle.95 *96 * @param mixed $needle97 * @param string $haystackAttributeName98 * @param mixed $haystackClassOrObject99 * @param string $message100 * @param bool $ignoreCase101 * @param bool $checkForObjectIdentity102 * @param bool $checkForNonObjectIdentity103 */104function assertAttributeContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)105{106 return call_user_func_array(107 'PHPUnit_Framework_Assert::assertAttributeContains',108 func_get_args()109 );110}111/**112 * Asserts that a haystack that is stored in a static attribute of a class113 * or an attribute of an object contains only values of a given type.114 *115 * @param string $type116 * @param string $haystackAttributeName117 * @param mixed $haystackClassOrObject118 * @param bool $isNativeType119 * @param string $message120 */121function assertAttributeContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = null, $message = '')122{123 return call_user_func_array(124 'PHPUnit_Framework_Assert::assertAttributeContainsOnly',125 func_get_args()126 );127}128/**129 * Asserts the number of elements of an array, Countable or Traversable130 * that is stored in an attribute.131 *132 * @param int $expectedCount133 * @param string $haystackAttributeName134 * @param mixed $haystackClassOrObject135 * @param string $message136 */137function assertAttributeCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '')138{139 return call_user_func_array(140 'PHPUnit_Framework_Assert::assertAttributeCount',141 func_get_args()142 );143}144/**145 * Asserts that a static attribute of a class or an attribute of an object146 * is empty.147 *148 * @param string $haystackAttributeName149 * @param mixed $haystackClassOrObject150 * @param string $message151 */152function assertAttributeEmpty($haystackAttributeName, $haystackClassOrObject, $message = '')153{154 return call_user_func_array(155 'PHPUnit_Framework_Assert::assertAttributeEmpty',156 func_get_args()157 );158}159/**160 * Asserts that a variable is equal to an attribute of an object.161 *162 * @param mixed $expected163 * @param string $actualAttributeName164 * @param string $actualClassOrObject165 * @param string $message166 * @param float $delta167 * @param int $maxDepth168 * @param bool $canonicalize169 * @param bool $ignoreCase170 */171function assertAttributeEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)172{173 return call_user_func_array(174 'PHPUnit_Framework_Assert::assertAttributeEquals',175 func_get_args()176 );177}178/**179 * Asserts that an attribute is greater than another value.180 *181 * @param mixed $expected182 * @param string $actualAttributeName183 * @param string $actualClassOrObject184 * @param string $message185 */186function assertAttributeGreaterThan($expected, $actualAttributeName, $actualClassOrObject, $message = '')187{188 return call_user_func_array(189 'PHPUnit_Framework_Assert::assertAttributeGreaterThan',190 func_get_args()191 );192}193/**194 * Asserts that an attribute is greater than or equal to another value.195 *196 * @param mixed $expected197 * @param string $actualAttributeName198 * @param string $actualClassOrObject199 * @param string $message200 */201function assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')202{203 return call_user_func_array(204 'PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual',205 func_get_args()206 );207}208/**209 * Asserts that an attribute is of a given type.210 *211 * @param string $expected212 * @param string $attributeName213 * @param mixed $classOrObject214 * @param string $message215 */216function assertAttributeInstanceOf($expected, $attributeName, $classOrObject, $message = '')217{218 return call_user_func_array(219 'PHPUnit_Framework_Assert::assertAttributeInstanceOf',220 func_get_args()221 );222}223/**224 * Asserts that an attribute is of a given type.225 *226 * @param string $expected227 * @param string $attributeName228 * @param mixed $classOrObject229 * @param string $message230 */231function assertAttributeInternalType($expected, $attributeName, $classOrObject, $message = '')232{233 return call_user_func_array(234 'PHPUnit_Framework_Assert::assertAttributeInternalType',235 func_get_args()236 );237}238/**239 * Asserts that an attribute is smaller than another value.240 *241 * @param mixed $expected242 * @param string $actualAttributeName243 * @param string $actualClassOrObject244 * @param string $message245 */246function assertAttributeLessThan($expected, $actualAttributeName, $actualClassOrObject, $message = '')247{248 return call_user_func_array(249 'PHPUnit_Framework_Assert::assertAttributeLessThan',250 func_get_args()251 );252}253/**254 * Asserts that an attribute is smaller than or equal to another value.255 *256 * @param mixed $expected257 * @param string $actualAttributeName258 * @param string $actualClassOrObject259 * @param string $message260 */261function assertAttributeLessThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')262{263 return call_user_func_array(264 'PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual',265 func_get_args()266 );267}268/**269 * Asserts that a haystack that is stored in a static attribute of a class270 * or an attribute of an object does not contain a needle.271 *272 * @param mixed $needle273 * @param string $haystackAttributeName274 * @param mixed $haystackClassOrObject275 * @param string $message276 * @param bool $ignoreCase277 * @param bool $checkForObjectIdentity278 * @param bool $checkForNonObjectIdentity279 */280function assertAttributeNotContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)281{282 return call_user_func_array(283 'PHPUnit_Framework_Assert::assertAttributeNotContains',284 func_get_args()285 );286}287/**288 * Asserts that a haystack that is stored in a static attribute of a class289 * or an attribute of an object does not contain only values of a given290 * type.291 *292 * @param string $type293 * @param string $haystackAttributeName294 * @param mixed $haystackClassOrObject295 * @param bool $isNativeType296 * @param string $message297 */298function assertAttributeNotContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = null, $message = '')299{300 return call_user_func_array(301 'PHPUnit_Framework_Assert::assertAttributeNotContainsOnly',302 func_get_args()303 );304}305/**306 * Asserts the number of elements of an array, Countable or Traversable307 * that is stored in an attribute.308 *309 * @param int $expectedCount310 * @param string $haystackAttributeName311 * @param mixed $haystackClassOrObject312 * @param string $message313 */314function assertAttributeNotCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '')315{316 return call_user_func_array(317 'PHPUnit_Framework_Assert::assertAttributeNotCount',318 func_get_args()319 );320}321/**322 * Asserts that a static attribute of a class or an attribute of an object323 * is not empty.324 *325 * @param string $haystackAttributeName326 * @param mixed $haystackClassOrObject327 * @param string $message328 */329function assertAttributeNotEmpty($haystackAttributeName, $haystackClassOrObject, $message = '')330{331 return call_user_func_array(332 'PHPUnit_Framework_Assert::assertAttributeNotEmpty',333 func_get_args()334 );335}336/**337 * Asserts that a variable is not equal to an attribute of an object.338 *339 * @param mixed $expected340 * @param string $actualAttributeName341 * @param string $actualClassOrObject342 * @param string $message343 * @param float $delta344 * @param int $maxDepth345 * @param bool $canonicalize346 * @param bool $ignoreCase347 */348function assertAttributeNotEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)349{350 return call_user_func_array(351 'PHPUnit_Framework_Assert::assertAttributeNotEquals',352 func_get_args()353 );354}355/**356 * Asserts that an attribute is of a given type.357 *358 * @param string $expected359 * @param string $attributeName360 * @param mixed $classOrObject361 * @param string $message362 */363function assertAttributeNotInstanceOf($expected, $attributeName, $classOrObject, $message = '')364{365 return call_user_func_array(366 'PHPUnit_Framework_Assert::assertAttributeNotInstanceOf',367 func_get_args()368 );369}370/**371 * Asserts that an attribute is of a given type.372 *373 * @param string $expected374 * @param string $attributeName375 * @param mixed $classOrObject376 * @param string $message377 */378function assertAttributeNotInternalType($expected, $attributeName, $classOrObject, $message = '')379{380 return call_user_func_array(381 'PHPUnit_Framework_Assert::assertAttributeNotInternalType',382 func_get_args()383 );384}385/**386 * Asserts that a variable and an attribute of an object do not have the387 * same type and value.388 *389 * @param mixed $expected390 * @param string $actualAttributeName391 * @param object $actualClassOrObject392 * @param string $message393 */394function assertAttributeNotSame($expected, $actualAttributeName, $actualClassOrObject, $message = '')395{396 return call_user_func_array(397 'PHPUnit_Framework_Assert::assertAttributeNotSame',398 func_get_args()399 );400}401/**402 * Asserts that a variable and an attribute of an object have the same type403 * and value.404 *405 * @param mixed $expected406 * @param string $actualAttributeName407 * @param object $actualClassOrObject408 * @param string $message409 */410function assertAttributeSame($expected, $actualAttributeName, $actualClassOrObject, $message = '')411{412 return call_user_func_array(413 'PHPUnit_Framework_Assert::assertAttributeSame',414 func_get_args()415 );416}417/**418 * Asserts that a class has a specified attribute.419 *420 * @param string $attributeName421 * @param string $className422 * @param string $message423 */424function assertClassHasAttribute($attributeName, $className, $message = '')425{426 return call_user_func_array(427 'PHPUnit_Framework_Assert::assertClassHasAttribute',428 func_get_args()429 );430}431/**432 * Asserts that a class has a specified static attribute.433 *434 * @param string $attributeName435 * @param string $className436 * @param string $message437 */438function assertClassHasStaticAttribute($attributeName, $className, $message = '')439{440 return call_user_func_array(441 'PHPUnit_Framework_Assert::assertClassHasStaticAttribute',442 func_get_args()443 );444}445/**446 * Asserts that a class does not have a specified attribute.447 *448 * @param string $attributeName449 * @param string $className450 * @param string $message451 */452function assertClassNotHasAttribute($attributeName, $className, $message = '')453{454 return call_user_func_array(455 'PHPUnit_Framework_Assert::assertClassNotHasAttribute',456 func_get_args()457 );458}459/**460 * Asserts that a class does not have a specified static attribute.461 *462 * @param string $attributeName463 * @param string $className464 * @param string $message465 */466function assertClassNotHasStaticAttribute($attributeName, $className, $message = '')467{468 return call_user_func_array(469 'PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute',470 func_get_args()471 );472}473/**474 * Asserts that a haystack contains a needle.475 *476 * @param mixed $needle477 * @param mixed $haystack478 * @param string $message479 * @param bool $ignoreCase480 * @param bool $checkForObjectIdentity481 * @param bool $checkForNonObjectIdentity482 */483function assertContains($needle, $haystack, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)484{485 return call_user_func_array(486 'PHPUnit_Framework_Assert::assertContains',487 func_get_args()488 );489}490/**491 * Asserts that a haystack contains only values of a given type.492 *493 * @param string $type494 * @param mixed $haystack495 * @param bool $isNativeType496 * @param string $message497 */498function assertContainsOnly($type, $haystack, $isNativeType = null, $message = '')499{500 return call_user_func_array(501 'PHPUnit_Framework_Assert::assertContainsOnly',502 func_get_args()503 );504}505/**506 * Asserts that a haystack contains only instances of a given classname507 *508 * @param string $classname509 * @param array|Traversable $haystack510 * @param string $message511 */512function assertContainsOnlyInstancesOf($classname, $haystack, $message = '')513{514 return call_user_func_array(515 'PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf',516 func_get_args()517 );518}519/**520 * Asserts the number of elements of an array, Countable or Traversable.521 *522 * @param int $expectedCount523 * @param mixed $haystack524 * @param string $message525 */526function assertCount($expectedCount, $haystack, $message = '')527{528 return call_user_func_array(529 'PHPUnit_Framework_Assert::assertCount',530 func_get_args()531 );532}533/**534 * Asserts that a variable is empty.535 *536 * @param mixed $actual537 * @param string $message538 *539 * @throws PHPUnit_Framework_AssertionFailedError540 */541function assertEmpty($actual, $message = '')542{543 return call_user_func_array(544 'PHPUnit_Framework_Assert::assertEmpty',545 func_get_args()546 );547}548/**549 * Asserts that a hierarchy of DOMElements matches.550 *551 * @param DOMElement $expectedElement552 * @param DOMElement $actualElement553 * @param bool $checkAttributes554 * @param string $message555 */556function assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actualElement, $checkAttributes = false, $message = '')557{558 return call_user_func_array(559 'PHPUnit_Framework_Assert::assertEqualXMLStructure',560 func_get_args()561 );562}563/**564 * Asserts that two variables are equal.565 *566 * @param mixed $expected567 * @param mixed $actual568 * @param string $message569 * @param float $delta570 * @param int $maxDepth571 * @param bool $canonicalize572 * @param bool $ignoreCase573 */574function assertEquals($expected, $actual, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)575{576 return call_user_func_array(577 'PHPUnit_Framework_Assert::assertEquals',578 func_get_args()579 );580}581/**582 * Asserts that a condition is not true.583 *584 * @param bool $condition585 * @param string $message586 *587 * @throws PHPUnit_Framework_AssertionFailedError588 */589function assertNotTrue($condition, $message = '')590{591 return call_user_func_array(592 'PHPUnit_Framework_Assert::assertNotTrue',593 func_get_args()594 );595}596/**597 * Asserts that a condition is false.598 *599 * @param bool $condition600 * @param string $message601 *602 * @throws PHPUnit_Framework_AssertionFailedError603 */604function assertFalse($condition, $message = '')605{606 return call_user_func_array(607 'PHPUnit_Framework_Assert::assertFalse',608 func_get_args()609 );610}611/**612 * Asserts that the contents of one file is equal to the contents of another613 * file.614 *615 * @param string $expected616 * @param string $actual617 * @param string $message618 * @param bool $canonicalize619 * @param bool $ignoreCase620 */621function assertFileEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false)622{623 return call_user_func_array(624 'PHPUnit_Framework_Assert::assertFileEquals',625 func_get_args()626 );627}628/**629 * Asserts that a file exists.630 *631 * @param string $filename632 * @param string $message633 */634function assertFileExists($filename, $message = '')635{636 return call_user_func_array(637 'PHPUnit_Framework_Assert::assertFileExists',638 func_get_args()639 );640}641/**642 * Asserts that the contents of one file is not equal to the contents of643 * another file.644 *645 * @param string $expected646 * @param string $actual647 * @param string $message648 * @param bool $canonicalize649 * @param bool $ignoreCase650 */651function assertFileNotEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false)652{653 return call_user_func_array(654 'PHPUnit_Framework_Assert::assertFileNotEquals',655 func_get_args()656 );657}658/**659 * Asserts that a file does not exist.660 *661 * @param string $filename662 * @param string $message663 */664function assertFileNotExists($filename, $message = '')665{666 return call_user_func_array(667 'PHPUnit_Framework_Assert::assertFileNotExists',668 func_get_args()669 );670}671/**672 * Asserts that a value is greater than another value.673 *674 * @param mixed $expected675 * @param mixed $actual676 * @param string $message677 */678function assertGreaterThan($expected, $actual, $message = '')679{680 return call_user_func_array(681 'PHPUnit_Framework_Assert::assertGreaterThan',682 func_get_args()683 );684}685/**686 * Asserts that a value is greater than or equal to another value.687 *688 * @param mixed $expected689 * @param mixed $actual690 * @param string $message691 */692function assertGreaterThanOrEqual($expected, $actual, $message = '')693{694 return call_user_func_array(695 'PHPUnit_Framework_Assert::assertGreaterThanOrEqual',696 func_get_args()697 );698}699/**700 * Asserts that a variable is of a given type.701 *702 * @param string $expected703 * @param mixed $actual704 * @param string $message705 */706function assertInstanceOf($expected, $actual, $message = '')707{708 return call_user_func_array(709 'PHPUnit_Framework_Assert::assertInstanceOf',710 func_get_args()711 );712}713/**714 * Asserts that a variable is of a given type.715 *716 * @param string $expected717 * @param mixed $actual718 * @param string $message719 */720function assertInternalType($expected, $actual, $message = '')721{722 return call_user_func_array(723 'PHPUnit_Framework_Assert::assertInternalType',724 func_get_args()725 );726}727/**728 * Asserts that a string is a valid JSON string.729 *730 * @param string $actualJson731 * @param string $message732 */733function assertJson($actualJson, $message = '')734{735 return call_user_func_array(736 'PHPUnit_Framework_Assert::assertJson',737 func_get_args()738 );739}740/**741 * Asserts that two JSON files are equal.742 *743 * @param string $expectedFile744 * @param string $actualFile745 * @param string $message746 */747function assertJsonFileEqualsJsonFile($expectedFile, $actualFile, $message = '')748{749 return call_user_func_array(750 'PHPUnit_Framework_Assert::assertJsonFileEqualsJsonFile',751 func_get_args()752 );753}754/**755 * Asserts that two JSON files are not equal.756 *757 * @param string $expectedFile758 * @param string $actualFile759 * @param string $message760 */761function assertJsonFileNotEqualsJsonFile($expectedFile, $actualFile, $message = '')762{763 return call_user_func_array(764 'PHPUnit_Framework_Assert::assertJsonFileNotEqualsJsonFile',765 func_get_args()766 );767}768/**769 * Asserts that the generated JSON encoded object and the content of the given file are equal.770 *771 * @param string $expectedFile772 * @param string $actualJson773 * @param string $message774 */775function assertJsonStringEqualsJsonFile($expectedFile, $actualJson, $message = '')776{777 return call_user_func_array(778 'PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile',779 func_get_args()780 );781}782/**783 * Asserts that two given JSON encoded objects or arrays are equal.784 *785 * @param string $expectedJson786 * @param string $actualJson787 * @param string $message788 */789function assertJsonStringEqualsJsonString($expectedJson, $actualJson, $message = '')790{791 return call_user_func_array(792 'PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString',793 func_get_args()794 );795}796/**797 * Asserts that the generated JSON encoded object and the content of the given file are not equal.798 *799 * @param string $expectedFile800 * @param string $actualJson801 * @param string $message802 */803function assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = '')804{805 return call_user_func_array(806 'PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile',807 func_get_args()808 );809}810/**811 * Asserts that two given JSON encoded objects or arrays are not equal.812 *813 * @param string $expectedJson814 * @param string $actualJson815 * @param string $message816 */817function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = '')818{819 return call_user_func_array(820 'PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString',821 func_get_args()822 );823}824/**825 * Asserts that a value is smaller than another value.826 *827 * @param mixed $expected828 * @param mixed $actual829 * @param string $message830 */831function assertLessThan($expected, $actual, $message = '')832{833 return call_user_func_array(834 'PHPUnit_Framework_Assert::assertLessThan',835 func_get_args()836 );837}838/**839 * Asserts that a value is smaller than or equal to another value.840 *841 * @param mixed $expected842 * @param mixed $actual843 * @param string $message844 */845function assertLessThanOrEqual($expected, $actual, $message = '')846{847 return call_user_func_array(848 'PHPUnit_Framework_Assert::assertLessThanOrEqual',849 func_get_args()850 );851}852/**853 * Asserts that a variable is finite.854 *855 * @param mixed $actual856 * @param string $message857 */858function assertFinite($actual, $message = '')859{860 return call_user_func_array(861 'PHPUnit_Framework_Assert::assertFinite',862 func_get_args()863 );864}865/**866 * Asserts that a variable is infinite.867 *868 * @param mixed $actual869 * @param string $message870 */871function assertInfinite($actual, $message = '')872{873 return call_user_func_array(874 'PHPUnit_Framework_Assert::assertInfinite',875 func_get_args()876 );877}878/**879 * Asserts that a variable is nan.880 *881 * @param mixed $actual882 * @param string $message883 */884function assertNan($actual, $message = '')885{886 return call_user_func_array(887 'PHPUnit_Framework_Assert::assertNan',888 func_get_args()889 );890}891/**892 * Asserts that a haystack does not contain a needle.893 *894 * @param mixed $needle895 * @param mixed $haystack896 * @param string $message897 * @param bool $ignoreCase898 * @param bool $checkForObjectIdentity899 * @param bool $checkForNonObjectIdentity900 */901function assertNotContains($needle, $haystack, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)902{903 return call_user_func_array(904 'PHPUnit_Framework_Assert::assertNotContains',905 func_get_args()906 );907}908/**909 * Asserts that a haystack does not contain only values of a given type.910 *911 * @param string $type912 * @param mixed $haystack913 * @param bool $isNativeType914 * @param string $message915 */916function assertNotContainsOnly($type, $haystack, $isNativeType = null, $message = '')917{918 return call_user_func_array(919 'PHPUnit_Framework_Assert::assertNotContainsOnly',920 func_get_args()921 );922}923/**924 * Asserts the number of elements of an array, Countable or Traversable.925 *926 * @param int $expectedCount927 * @param mixed $haystack928 * @param string $message929 */930function assertNotCount($expectedCount, $haystack, $message = '')931{932 return call_user_func_array(933 'PHPUnit_Framework_Assert::assertNotCount',934 func_get_args()935 );936}937/**938 * Asserts that a variable is not empty.939 *940 * @param mixed $actual941 * @param string $message942 *943 * @throws PHPUnit_Framework_AssertionFailedError944 */945function assertNotEmpty($actual, $message = '')946{947 return call_user_func_array(948 'PHPUnit_Framework_Assert::assertNotEmpty',949 func_get_args()950 );951}952/**953 * Asserts that two variables are not equal.954 *955 * @param mixed $expected956 * @param mixed $actual957 * @param string $message958 * @param float $delta959 * @param int $maxDepth960 * @param bool $canonicalize961 * @param bool $ignoreCase962 */963function assertNotEquals($expected, $actual, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)964{965 return call_user_func_array(966 'PHPUnit_Framework_Assert::assertNotEquals',967 func_get_args()968 );969}970/**971 * Asserts that a variable is not of a given type.972 *973 * @param string $expected974 * @param mixed $actual975 * @param string $message976 */977function assertNotInstanceOf($expected, $actual, $message = '')978{979 return call_user_func_array(980 'PHPUnit_Framework_Assert::assertNotInstanceOf',981 func_get_args()982 );983}984/**985 * Asserts that a variable is not of a given type.986 *987 * @param string $expected988 * @param mixed $actual989 * @param string $message990 */991function assertNotInternalType($expected, $actual, $message = '')992{993 return call_user_func_array(994 'PHPUnit_Framework_Assert::assertNotInternalType',995 func_get_args()996 );997}998/**999 * Asserts that a condition is not false.1000 *1001 * @param bool $condition1002 * @param string $message1003 *1004 * @throws PHPUnit_Framework_AssertionFailedError1005 */1006function assertNotFalse($condition, $message = '')1007{1008 return call_user_func_array(1009 'PHPUnit_Framework_Assert::assertNotFalse',1010 func_get_args()1011 );1012}1013/**1014 * Asserts that a variable is not null.1015 *1016 * @param mixed $actual1017 * @param string $message1018 */1019function assertNotNull($actual, $message = '')1020{1021 return call_user_func_array(1022 'PHPUnit_Framework_Assert::assertNotNull',1023 func_get_args()1024 );1025}1026/**1027 * Asserts that a string does not match a given regular expression.1028 *1029 * @param string $pattern1030 * @param string $string1031 * @param string $message1032 */1033function assertNotRegExp($pattern, $string, $message = '')1034{1035 return call_user_func_array(1036 'PHPUnit_Framework_Assert::assertNotRegExp',1037 func_get_args()1038 );1039}1040/**1041 * Asserts that two variables do not have the same type and value.1042 * Used on objects, it asserts that two variables do not reference1043 * the same object.1044 *1045 * @param mixed $expected1046 * @param mixed $actual1047 * @param string $message1048 */1049function assertNotSame($expected, $actual, $message = '')1050{1051 return call_user_func_array(1052 'PHPUnit_Framework_Assert::assertNotSame',1053 func_get_args()1054 );1055}1056/**1057 * Assert that the size of two arrays (or `Countable` or `Traversable` objects)1058 * is not the same.1059 *1060 * @param array|Countable|Traversable $expected1061 * @param array|Countable|Traversable $actual1062 * @param string $message1063 */1064function assertNotSameSize($expected, $actual, $message = '')1065{1066 return call_user_func_array(1067 'PHPUnit_Framework_Assert::assertNotSameSize',1068 func_get_args()1069 );1070}1071/**1072 * Asserts that a variable is null.1073 *1074 * @param mixed $actual1075 * @param string $message1076 */1077function assertNull($actual, $message = '')1078{1079 return call_user_func_array(1080 'PHPUnit_Framework_Assert::assertNull',1081 func_get_args()1082 );1083}1084/**1085 * Asserts that an object has a specified attribute.1086 *1087 * @param string $attributeName1088 * @param object $object1089 * @param string $message1090 */1091function assertObjectHasAttribute($attributeName, $object, $message = '')1092{1093 return call_user_func_array(1094 'PHPUnit_Framework_Assert::assertObjectHasAttribute',1095 func_get_args()1096 );1097}1098/**1099 * Asserts that an object does not have a specified attribute.1100 *1101 * @param string $attributeName1102 * @param object $object1103 * @param string $message1104 */1105function assertObjectNotHasAttribute($attributeName, $object, $message = '')1106{1107 return call_user_func_array(1108 'PHPUnit_Framework_Assert::assertObjectNotHasAttribute',1109 func_get_args()1110 );1111}1112/**1113 * Asserts that a string matches a given regular expression.1114 *1115 * @param string $pattern1116 * @param string $string1117 * @param string $message1118 */1119function assertRegExp($pattern, $string, $message = '')1120{1121 return call_user_func_array(1122 'PHPUnit_Framework_Assert::assertRegExp',1123 func_get_args()1124 );1125}1126/**1127 * Asserts that two variables have the same type and value.1128 * Used on objects, it asserts that two variables reference1129 * the same object.1130 *1131 * @param mixed $expected1132 * @param mixed $actual1133 * @param string $message1134 */1135function assertSame($expected, $actual, $message = '')1136{1137 return call_user_func_array(1138 'PHPUnit_Framework_Assert::assertSame',1139 func_get_args()1140 );1141}1142/**1143 * Assert that the size of two arrays (or `Countable` or `Traversable` objects)1144 * is the same.1145 *1146 * @param array|Countable|Traversable $expected1147 * @param array|Countable|Traversable $actual1148 * @param string $message1149 */1150function assertSameSize($expected, $actual, $message = '')1151{1152 return call_user_func_array(1153 'PHPUnit_Framework_Assert::assertSameSize',1154 func_get_args()1155 );1156}1157/**1158 * Asserts that a string ends not with a given prefix.1159 *1160 * @param string $suffix1161 * @param string $string1162 * @param string $message1163 */1164function assertStringEndsNotWith($suffix, $string, $message = '')1165{1166 return call_user_func_array(1167 'PHPUnit_Framework_Assert::assertStringEndsNotWith',1168 func_get_args()1169 );1170}1171/**1172 * Asserts that a string ends with a given prefix.1173 *1174 * @param string $suffix1175 * @param string $string1176 * @param string $message1177 */1178function assertStringEndsWith($suffix, $string, $message = '')1179{1180 return call_user_func_array(1181 'PHPUnit_Framework_Assert::assertStringEndsWith',1182 func_get_args()1183 );1184}1185/**1186 * Asserts that the contents of a string is equal1187 * to the contents of a file.1188 *1189 * @param string $expectedFile1190 * @param string $actualString1191 * @param string $message1192 * @param bool $canonicalize1193 * @param bool $ignoreCase1194 */1195function assertStringEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = false, $ignoreCase = false)1196{1197 return call_user_func_array(1198 'PHPUnit_Framework_Assert::assertStringEqualsFile',1199 func_get_args()1200 );1201}1202/**1203 * Asserts that a string matches a given format string.1204 *1205 * @param string $format1206 * @param string $string1207 * @param string $message1208 */1209function assertStringMatchesFormat($format, $string, $message = '')1210{1211 return call_user_func_array(1212 'PHPUnit_Framework_Assert::assertStringMatchesFormat',1213 func_get_args()1214 );1215}1216/**1217 * Asserts that a string matches a given format file.1218 *1219 * @param string $formatFile1220 * @param string $string1221 * @param string $message1222 */1223function assertStringMatchesFormatFile($formatFile, $string, $message = '')1224{1225 return call_user_func_array(1226 'PHPUnit_Framework_Assert::assertStringMatchesFormatFile',1227 func_get_args()1228 );1229}1230/**1231 * Asserts that the contents of a string is not equal1232 * to the contents of a file.1233 *1234 * @param string $expectedFile1235 * @param string $actualString1236 * @param string $message1237 * @param bool $canonicalize1238 * @param bool $ignoreCase1239 */1240function assertStringNotEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = false, $ignoreCase = false)1241{1242 return call_user_func_array(1243 'PHPUnit_Framework_Assert::assertStringNotEqualsFile',1244 func_get_args()1245 );1246}1247/**1248 * Asserts that a string does not match a given format string.1249 *1250 * @param string $format1251 * @param string $string1252 * @param string $message1253 */1254function assertStringNotMatchesFormat($format, $string, $message = '')1255{1256 return call_user_func_array(1257 'PHPUnit_Framework_Assert::assertStringNotMatchesFormat',1258 func_get_args()1259 );1260}1261/**1262 * Asserts that a string does not match a given format string.1263 *1264 * @param string $formatFile1265 * @param string $string1266 * @param string $message1267 */1268function assertStringNotMatchesFormatFile($formatFile, $string, $message = '')1269{1270 return call_user_func_array(1271 'PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile',1272 func_get_args()1273 );1274}1275/**1276 * Asserts that a string starts not with a given prefix.1277 *1278 * @param string $prefix1279 * @param string $string1280 * @param string $message1281 */1282function assertStringStartsNotWith($prefix, $string, $message = '')1283{1284 return call_user_func_array(1285 'PHPUnit_Framework_Assert::assertStringStartsNotWith',1286 func_get_args()1287 );1288}1289/**1290 * Asserts that a string starts with a given prefix.1291 *1292 * @param string $prefix1293 * @param string $string1294 * @param string $message1295 */1296function assertStringStartsWith($prefix, $string, $message = '')1297{1298 return call_user_func_array(1299 'PHPUnit_Framework_Assert::assertStringStartsWith',1300 func_get_args()1301 );1302}1303/**1304 * Evaluates a PHPUnit_Framework_Constraint matcher object.1305 *1306 * @param mixed $value1307 * @param PHPUnit_Framework_Constraint $constraint1308 * @param string $message1309 */1310function assertThat($value, PHPUnit_Framework_Constraint $constraint, $message = '')1311{1312 return call_user_func_array(1313 'PHPUnit_Framework_Assert::assertThat',1314 func_get_args()1315 );1316}1317/**1318 * Asserts that a condition is true.1319 *1320 * @param bool $condition1321 * @param string $message1322 *1323 * @throws PHPUnit_Framework_AssertionFailedError1324 */1325function assertTrue($condition, $message = '')1326{1327 return call_user_func_array(1328 'PHPUnit_Framework_Assert::assertTrue',1329 func_get_args()1330 );1331}1332/**1333 * Asserts that two XML files are equal.1334 *1335 * @param string $expectedFile1336 * @param string $actualFile1337 * @param string $message1338 */1339function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = '')1340{1341 return call_user_func_array(1342 'PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile',1343 func_get_args()1344 );1345}1346/**1347 * Asserts that two XML files are not equal.1348 *1349 * @param string $expectedFile1350 * @param string $actualFile1351 * @param string $message1352 */1353function assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message = '')1354{1355 return call_user_func_array(1356 'PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile',1357 func_get_args()1358 );1359}1360/**1361 * Asserts that two XML documents are equal.1362 *1363 * @param string $expectedFile1364 * @param string $actualXml1365 * @param string $message1366 */1367function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = '')1368{1369 return call_user_func_array(1370 'PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile',1371 func_get_args()1372 );1373}1374/**1375 * Asserts that two XML documents are equal.1376 *1377 * @param string $expectedXml1378 * @param string $actualXml1379 * @param string $message1380 */1381function assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message = '')1382{1383 return call_user_func_array(1384 'PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString',1385 func_get_args()1386 );1387}1388/**1389 * Asserts that two XML documents are not equal.1390 *1391 * @param string $expectedFile1392 * @param string $actualXml1393 * @param string $message1394 */1395function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = '')1396{1397 return call_user_func_array(1398 'PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile',1399 func_get_args()1400 );1401}1402/**1403 * Asserts that two XML documents are not equal.1404 *1405 * @param string $expectedXml1406 * @param string $actualXml1407 * @param string $message1408 */1409function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = '')1410{1411 return call_user_func_array(1412 'PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString',1413 func_get_args()1414 );1415}1416/**1417 * Returns a matcher that matches when the method is executed1418 * at the given $index.1419 *1420 * @param int $index1421 *1422 * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex1423 */1424function at($index)1425{1426 return call_user_func_array(1427 'PHPUnit_Framework_TestCase::at',1428 func_get_args()1429 );1430}1431/**1432 * Returns a matcher that matches when the method is executed at least once.1433 *1434 * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce1435 */1436function atLeastOnce()1437{1438 return call_user_func_array(1439 'PHPUnit_Framework_TestCase::atLeastOnce',1440 func_get_args()1441 );1442}1443/**1444 * Returns a PHPUnit_Framework_Constraint_Attribute matcher object.1445 *1446 * @param PHPUnit_Framework_Constraint $constraint1447 * @param string $attributeName1448 *1449 * @return PHPUnit_Framework_Constraint_Attribute1450 */1451function attribute(PHPUnit_Framework_Constraint $constraint, $attributeName)1452{1453 return call_user_func_array(1454 'PHPUnit_Framework_Assert::attribute',1455 func_get_args()1456 );1457}1458/**1459 * Returns a PHPUnit_Framework_Constraint_IsEqual matcher object1460 * that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher1461 * object.1462 *1463 * @param string $attributeName1464 * @param mixed $value1465 * @param float $delta1466 * @param int $maxDepth1467 * @param bool $canonicalize1468 * @param bool $ignoreCase1469 *1470 * @return PHPUnit_Framework_Constraint_Attribute1471 */1472function attributeEqualTo($attributeName, $value, $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)1473{1474 return call_user_func_array(1475 'PHPUnit_Framework_Assert::attributeEqualTo',1476 func_get_args()1477 );1478}1479/**1480 * Returns a PHPUnit_Framework_Constraint_Callback matcher object.1481 *1482 * @param callable $callback1483 *1484 * @return PHPUnit_Framework_Constraint_Callback1485 */1486function callback($callback)1487{1488 return call_user_func_array(1489 'PHPUnit_Framework_Assert::callback',1490 func_get_args()1491 );1492}1493/**1494 * Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.1495 *1496 * @param string $attributeName1497 *1498 * @return PHPUnit_Framework_Constraint_ClassHasAttribute1499 */1500function classHasAttribute($attributeName)1501{1502 return call_user_func_array(1503 'PHPUnit_Framework_Assert::classHasAttribute',1504 func_get_args()1505 );1506}1507/**1508 * Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher1509 * object.1510 *1511 * @param string $attributeName1512 *1513 * @return PHPUnit_Framework_Constraint_ClassHasStaticAttribute1514 */1515function classHasStaticAttribute($attributeName)1516{1517 return call_user_func_array(1518 'PHPUnit_Framework_Assert::classHasStaticAttribute',1519 func_get_args()1520 );1521}1522/**1523 * Returns a PHPUnit_Framework_Constraint_TraversableContains matcher1524 * object.1525 *1526 * @param mixed $value1527 * @param bool $checkForObjectIdentity1528 * @param bool $checkForNonObjectIdentity1529 *1530 * @return PHPUnit_Framework_Constraint_TraversableContains1531 */1532function contains($value, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)1533{1534 return call_user_func_array(1535 'PHPUnit_Framework_Assert::contains',1536 func_get_args()1537 );1538}1539/**1540 * Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher1541 * object.1542 *1543 * @param string $type1544 *1545 * @return PHPUnit_Framework_Constraint_TraversableContainsOnly1546 */1547function containsOnly($type)1548{1549 return call_user_func_array(1550 'PHPUnit_Framework_Assert::containsOnly',1551 func_get_args()1552 );1553}1554/**1555 * Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher1556 * object.1557 *1558 * @param string $classname1559 *1560 * @return PHPUnit_Framework_Constraint_TraversableContainsOnly1561 */1562function containsOnlyInstancesOf($classname)1563{1564 return call_user_func_array(1565 'PHPUnit_Framework_Assert::containsOnlyInstancesOf',1566 func_get_args()1567 );1568}1569/**1570 * Returns a PHPUnit_Framework_Constraint_Count matcher object.1571 *1572 * @param int $count1573 *1574 * @return Count1575 */1576function countOf($count)1577{1578 return call_user_func_array(1579 'PHPUnit\Framework\Assert::countOf',1580 func_get_args()1581 );1582}1583/**1584 * Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.1585 *1586 * @param mixed $value1587 * @param float $delta1588 * @param int $maxDepth1589 * @param bool $canonicalize1590 * @param bool $ignoreCase1591 *1592 * @return PHPUnit_Framework_Constraint_IsEqual1593 */1594function equalTo($value, $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)1595{1596 return call_user_func_array(1597 'PHPUnit_Framework_Assert::equalTo',1598 func_get_args()1599 );1600}1601/**1602 * Returns a matcher that matches when the method is executed1603 * exactly $count times.1604 *1605 * @param int $count1606 *1607 * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount1608 */1609function exactly($count)1610{1611 return call_user_func_array(1612 'PHPUnit_Framework_TestCase::exactly',1613 func_get_args()1614 );1615}1616/**1617 * Returns a PHPUnit_Framework_Constraint_FileExists matcher object.1618 *1619 * @return PHPUnit_Framework_Constraint_FileExists1620 */1621function fileExists()1622{1623 return call_user_func_array(1624 'PHPUnit_Framework_Assert::fileExists',1625 func_get_args()1626 );1627}1628/**1629 * Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.1630 *1631 * @param mixed $value1632 *1633 * @return PHPUnit_Framework_Constraint_GreaterThan1634 */1635function greaterThan($value)1636{1637 return call_user_func_array(1638 'PHPUnit_Framework_Assert::greaterThan',1639 func_get_args()1640 );1641}1642/**1643 * Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps1644 * a PHPUnit_Framework_Constraint_IsEqual and a1645 * PHPUnit_Framework_Constraint_GreaterThan matcher object.1646 *1647 * @param mixed $value1648 *1649 * @return PHPUnit_Framework_Constraint_Or1650 */1651function greaterThanOrEqual($value)1652{1653 return call_user_func_array(1654 'PHPUnit_Framework_Assert::greaterThanOrEqual',1655 func_get_args()1656 );1657}1658/**1659 * Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.1660 *1661 * @param mixed $value1662 *1663 * @return PHPUnit_Framework_Constraint_IsIdentical1664 */1665function identicalTo($value)1666{1667 return call_user_func_array(1668 'PHPUnit_Framework_Assert::identicalTo',1669 func_get_args()1670 );1671}1672/**1673 * Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.1674 *1675 * @return PHPUnit_Framework_Constraint_IsEmpty1676 */1677function isEmpty()1678{1679 return call_user_func_array(1680 'PHPUnit_Framework_Assert::isEmpty',1681 func_get_args()1682 );1683}1684/**1685 * Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.1686 *1687 * @return PHPUnit_Framework_Constraint_IsFalse1688 */1689function isFalse()1690{1691 return call_user_func_array(1692 'PHPUnit_Framework_Assert::isFalse',1693 func_get_args()1694 );1695}1696/**1697 * Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.1698 *1699 * @param string $className1700 *1701 * @return PHPUnit_Framework_Constraint_IsInstanceOf1702 */1703function isInstanceOf($className)1704{1705 return call_user_func_array(1706 'PHPUnit_Framework_Assert::isInstanceOf',1707 func_get_args()1708 );1709}1710/**1711 * Returns a PHPUnit_Framework_Constraint_IsJson matcher object.1712 *1713 * @return PHPUnit_Framework_Constraint_IsJson1714 */1715function isJson()1716{1717 return call_user_func_array(1718 'PHPUnit_Framework_Assert::isJson',1719 func_get_args()1720 );1721}1722/**1723 * Returns a PHPUnit_Framework_Constraint_IsNull matcher object.1724 *1725 * @return PHPUnit_Framework_Constraint_IsNull1726 */1727function isNull()1728{1729 return call_user_func_array(1730 'PHPUnit_Framework_Assert::isNull',1731 func_get_args()1732 );1733}1734/**1735 * Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.1736 *1737 * @return PHPUnit_Framework_Constraint_IsTrue1738 */1739function isTrue()1740{1741 return call_user_func_array(1742 'PHPUnit_Framework_Assert::isTrue',1743 func_get_args()1744 );1745}1746/**1747 * Returns a PHPUnit_Framework_Constraint_IsType matcher object.1748 *1749 * @param string $type1750 *1751 * @return PHPUnit_Framework_Constraint_IsType1752 */1753function isType($type)1754{1755 return call_user_func_array(1756 'PHPUnit_Framework_Assert::isType',1757 func_get_args()1758 );1759}1760/**1761 * Returns a PHPUnit_Framework_Constraint_LessThan matcher object.1762 *1763 * @param mixed $value1764 *1765 * @return PHPUnit_Framework_Constraint_LessThan1766 */1767function lessThan($value)1768{1769 return call_user_func_array(1770 'PHPUnit_Framework_Assert::lessThan',1771 func_get_args()1772 );1773}1774/**1775 * Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps1776 * a PHPUnit_Framework_Constraint_IsEqual and a1777 * PHPUnit_Framework_Constraint_LessThan matcher object.1778 *1779 * @param mixed $value1780 *1781 * @return PHPUnit_Framework_Constraint_Or1782 */1783function lessThanOrEqual($value)1784{1785 return call_user_func_array(1786 'PHPUnit_Framework_Assert::lessThanOrEqual',1787 func_get_args()1788 );1789}1790/**1791 * Returns a PHPUnit_Framework_Constraint_And matcher object.1792 *1793 * @return PHPUnit_Framework_Constraint_And1794 */1795function logicalAnd()1796{1797 return call_user_func_array(1798 'PHPUnit_Framework_Assert::logicalAnd',1799 func_get_args()1800 );1801}1802/**1803 * Returns a PHPUnit_Framework_Constraint_Not matcher object.1804 *1805 * @param PHPUnit_Framework_Constraint $constraint1806 *1807 * @return PHPUnit_Framework_Constraint_Not1808 */1809function logicalNot(PHPUnit_Framework_Constraint $constraint)1810{1811 return call_user_func_array(1812 'PHPUnit_Framework_Assert::logicalNot',1813 func_get_args()1814 );1815}1816/**1817 * Returns a PHPUnit_Framework_Constraint_Or matcher object.1818 *1819 * @return PHPUnit_Framework_Constraint_Or1820 */1821function logicalOr()1822{1823 return call_user_func_array(1824 'PHPUnit_Framework_Assert::logicalOr',1825 func_get_args()1826 );1827}1828/**1829 * Returns a PHPUnit_Framework_Constraint_Xor matcher object.1830 *1831 * @return PHPUnit_Framework_Constraint_Xor1832 */1833function logicalXor()1834{1835 return call_user_func_array(1836 'PHPUnit_Framework_Assert::logicalXor',1837 func_get_args()1838 );1839}1840/**1841 * Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.1842 *1843 * @param string $string1844 *1845 * @return PHPUnit_Framework_Constraint_StringMatches1846 */1847function matches($string)1848{1849 return call_user_func_array(1850 'PHPUnit_Framework_Assert::matches',1851 func_get_args()1852 );1853}1854/**1855 * Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.1856 *1857 * @param string $pattern1858 *1859 * @return PHPUnit_Framework_Constraint_PCREMatch1860 */1861function matchesRegularExpression($pattern)1862{1863 return call_user_func_array(1864 'PHPUnit_Framework_Assert::matchesRegularExpression',1865 func_get_args()1866 );1867}1868/**1869 * Returns a matcher that matches when the method is never executed.1870 *1871 * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount1872 */1873function never()1874{1875 return call_user_func_array(1876 'PHPUnit_Framework_TestCase::never',1877 func_get_args()1878 );1879}1880/**1881 * Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.1882 *1883 * @param string $attributeName1884 *1885 * @return PHPUnit_Framework_Constraint_ObjectHasAttribute1886 */1887function objectHasAttribute($attributeName)1888{1889 return call_user_func_array(1890 'PHPUnit_Framework_Assert::objectHasAttribute',1891 func_get_args()1892 );1893}1894/**1895 * @param mixed $value, ...1896 *1897 * @return PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls1898 */1899function onConsecutiveCalls()1900{1901 return call_user_func_array(1902 'PHPUnit_Framework_TestCase::onConsecutiveCalls',1903 func_get_args()1904 );1905}1906/**1907 * Returns a matcher that matches when the method is executed exactly once.1908 *1909 * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount1910 */1911function once()1912{1913 return call_user_func_array(1914 'PHPUnit_Framework_TestCase::once',1915 func_get_args()1916 );1917}1918/**1919 * @param int $argumentIndex1920 *1921 * @return PHPUnit_Framework_MockObject_Stub_ReturnArgument1922 */1923function returnArgument($argumentIndex)1924{1925 return call_user_func_array(1926 'PHPUnit_Framework_TestCase::returnArgument',1927 func_get_args()1928 );1929}1930/**1931 * @param mixed $callback1932 *1933 * @return PHPUnit_Framework_MockObject_Stub_ReturnCallback1934 */1935function returnCallback($callback)1936{1937 return call_user_func_array(1938 'PHPUnit_Framework_TestCase::returnCallback',1939 func_get_args()1940 );1941}1942/**1943 * Returns the current object.1944 *1945 * This method is useful when mocking a fluent interface.1946 *1947 * @return PHPUnit_Framework_MockObject_Stub_ReturnSelf1948 */1949function returnSelf()1950{1951 return call_user_func_array(1952 'PHPUnit_Framework_TestCase::returnSelf',1953 func_get_args()1954 );1955}1956/**1957 * @param mixed $value1958 *1959 * @return PHPUnit_Framework_MockObject_Stub_Return1960 */1961function returnValue($value)1962{1963 return call_user_func_array(1964 'PHPUnit_Framework_TestCase::returnValue',1965 func_get_args()1966 );1967}1968/**1969 * @param array $valueMap1970 *1971 * @return PHPUnit_Framework_MockObject_Stub_ReturnValueMap1972 */1973function returnValueMap(array $valueMap)1974{1975 return call_user_func_array(1976 'PHPUnit_Framework_TestCase::returnValueMap',1977 func_get_args()1978 );1979}1980/**1981 * Returns a PHPUnit_Framework_Constraint_StringContains matcher object.1982 *1983 * @param string $string1984 * @param bool $case1985 *1986 * @return PHPUnit_Framework_Constraint_StringContains1987 */1988function stringContains($string, $case = true)1989{1990 return call_user_func_array(1991 'PHPUnit_Framework_Assert::stringContains',1992 func_get_args()1993 );1994}1995/**1996 * Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.1997 *1998 * @param mixed $suffix1999 *2000 * @return PHPUnit_Framework_Constraint_StringEndsWith2001 */2002function stringEndsWith($suffix)2003{2004 return call_user_func_array(2005 'PHPUnit_Framework_Assert::stringEndsWith',2006 func_get_args()2007 );2008}2009/**2010 * Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.2011 *2012 * @param mixed $prefix2013 *2014 * @return PHPUnit_Framework_Constraint_StringStartsWith2015 */2016function stringStartsWith($prefix)2017{2018 return call_user_func_array(2019 'PHPUnit_Framework_Assert::stringStartsWith',2020 func_get_args()2021 );2022}2023/**2024 * @param Exception $exception2025 *2026 * @return PHPUnit_Framework_MockObject_Stub_Exception2027 */2028function throwException(Exception $exception)2029{2030 return call_user_func_array(2031 'PHPUnit_Framework_TestCase::throwException',2032 func_get_args()2033 );2034}...

Full Screen

Full Screen

func

Using AI Code Generation

copy

Full Screen

1$obj = new or();2$obj->func();3$obj = new or();4$obj->func();5$obj = new or();6$obj->func();7$obj = new or();8$obj->func();9$obj = new or();10$obj->func();11$obj = new or();12$obj->func();13$obj = new or();14$obj->func();15$obj = new or();16$obj->func();17$obj = new or();18$obj->func();19$obj = new or();20$obj->func();21$obj = new or();22$obj->func();23$obj = new or();24$obj->func();25$obj = new or();26$obj->func();27$obj = new or();28$obj->func();29$obj = new or();30$obj->func();31$obj = new or();32$obj->func();33$obj = new or();34$obj->func();35$obj = new or();36$obj->func();37$obj = new or();38$obj->func();

Full Screen

Full Screen

func

Using AI Code Generation

copy

Full Screen

1$obj = new or;2$obj->func();3$obj = new or;4$obj->func();5$obj = new or;6$obj->func();7$obj = new or;8$obj->func();9$obj = new or;10$obj->func();11$obj = new or;12$obj->func();13$obj = new or;14$obj->func();15$obj = new or;16$obj->func();17$obj = new or;18$obj->func();19$obj = new or;20$obj->func();21$obj = new or;22$obj->func();23$obj = new or;24$obj->func();25$obj = new or;26$obj->func();27$obj = new or;28$obj->func();29$obj = new or;30$obj->func();31$obj = new or;32$obj->func();33$obj = new or;34$obj->func();35$obj = new or;36$obj->func();37$obj = new or;38$obj->func();

Full Screen

Full Screen

func

Using AI Code Generation

copy

Full Screen

1$obj = new or();2echo $obj->func();3$obj = new or();4echo $obj->func();5$obj = new or();6echo $obj->func();7$obj = new or();8echo $obj->func();9$obj = new or();10echo $obj->func();11$obj = new or();12echo $obj->func();13$obj = new or();14echo $obj->func();15$obj = new or();16echo $obj->func();17$obj = new or();18echo $obj->func();19$obj = new or();20echo $obj->func();21$obj = new or();22echo $obj->func();23$obj = new or();24echo $obj->func();25$obj = new or();26echo $obj->func();27$obj = new or();28echo $obj->func();29$obj = new or();30echo $obj->func();31$obj = new or();32echo $obj->func();33$obj = new or();34echo $obj->func();35$obj = new or();36echo $obj->func();

Full Screen

Full Screen

func

Using AI Code Generation

copy

Full Screen

1$or = new or();2echo $or->func();3use my\space\or;4$or = new or();5echo $or->func();6use my\space\or as orclass;7use my\space\or as or_class;8use my\space\or as orClass;9use my\space\or as OrClass;

Full Screen

Full Screen

func

Using AI Code Generation

copy

Full Screen

1require_once('1.php');2$or = new or();3$or->func();4class or{5 public function func(){6 echo "Hello world!";7 }8}9Example 2: Using require_once() to include a file10require_once('1.php');11func();12function func(){13 echo "Hello world!";14}15Example 3: Using require_once() to include a file16require_once('1.php');17echo $var;18$var = "Hello world!";19Example 4: Using require_once() to include a file20require_once('1.php');21echo $var;22$var = "Hello world!";23Example 5: Using require_once() to include a file24require_once('1.php');25echo $var;26$var = "Hello world!";27Example 6: Using require_once() to include a file28require_once('1.php');29echo $var;30$var = "Hello world!";31Example 7: Using require_once() to include a file32require_once('1.php');33echo $var;34$var = "Hello world!";35Example 8: Using require_once() to include a file

Full Screen

Full Screen

func

Using AI Code Generation

copy

Full Screen

1require_once '1.php';2$obj = new MyClass();3$obj->func('hello world');4{5 public function func($arg)6 {7 echo $arg;8 }9}

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run AspectMock automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used method in or

Trigger func code on LambdaTest Cloud Grid

Execute automation tests with func on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.

Test now for Free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful