UnitTesterActions.php 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369
  1. <?php //[STAMP] e8c6f0fe1f139ff182ff4f343c672614
  2. namespace _generated;
  3. // This class was automatically generated by build task
  4. // You should not change it manually as it will be overwritten on next build
  5. // @codingStandardsIgnoreFile
  6. trait UnitTesterActions
  7. {
  8. /**
  9. * @return \Codeception\Scenario
  10. */
  11. abstract protected function getScenario();
  12. /**
  13. * [!] Method is generated. Documentation taken from corresponding module.
  14. *
  15. * Handles and checks exception called inside callback function.
  16. * Either exception class name or exception instance should be provided.
  17. *
  18. * ```php
  19. * <?php
  20. * $I->expectException(MyException::class, function() {
  21. * $this->doSomethingBad();
  22. * });
  23. *
  24. * $I->expectException(new MyException(), function() {
  25. * $this->doSomethingBad();
  26. * });
  27. * ```
  28. * If you want to check message or exception code, you can pass them with exception instance:
  29. * ```php
  30. * <?php
  31. * // will check that exception MyException is thrown with "Don't do bad things" message
  32. * $I->expectException(new MyException("Don't do bad things"), function() {
  33. * $this->doSomethingBad();
  34. * });
  35. * ```
  36. *
  37. * @deprecated Use expectThrowable() instead
  38. * @param \Exception|string $exception
  39. * @param callable $callback
  40. * @see \Codeception\Module\Asserts::expectException()
  41. */
  42. public function expectException($exception, $callback) {
  43. return $this->getScenario()->runStep(new \Codeception\Step\Action('expectException', func_get_args()));
  44. }
  45. /**
  46. * [!] Method is generated. Documentation taken from corresponding module.
  47. *
  48. * Handles and checks throwables (Exceptions/Errors) called inside the callback function.
  49. * Either throwable class name or throwable instance should be provided.
  50. *
  51. * ```php
  52. * <?php
  53. * $I->expectThrowable(MyThrowable::class, function() {
  54. * $this->doSomethingBad();
  55. * });
  56. *
  57. * $I->expectThrowable(new MyException(), function() {
  58. * $this->doSomethingBad();
  59. * });
  60. * ```
  61. * If you want to check message or throwable code, you can pass them with throwable instance:
  62. * ```php
  63. * <?php
  64. * // will check that throwable MyError is thrown with "Don't do bad things" message
  65. * $I->expectThrowable(new MyError("Don't do bad things"), function() {
  66. * $this->doSomethingBad();
  67. * });
  68. * ```
  69. *
  70. * @param \Throwable|string $throwable
  71. * @param callable $callback
  72. * @see \Codeception\Module\Asserts::expectThrowable()
  73. */
  74. public function expectThrowable($throwable, $callback) {
  75. return $this->getScenario()->runStep(new \Codeception\Step\Action('expectThrowable', func_get_args()));
  76. }
  77. /**
  78. * [!] Method is generated. Documentation taken from corresponding module.
  79. *
  80. * Asserts that a file does not exist.
  81. *
  82. * @param string $filename
  83. * @param string $message
  84. * @see \Codeception\Module\AbstractAsserts::assertFileNotExists()
  85. */
  86. public function assertFileNotExists($filename, $message = "") {
  87. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args()));
  88. }
  89. /**
  90. * [!] Method is generated. Documentation taken from corresponding module.
  91. *
  92. * Asserts that a value is greater than or equal to another value.
  93. *
  94. * @param $expected
  95. * @param $actual
  96. * @param string $message
  97. * @see \Codeception\Module\AbstractAsserts::assertGreaterOrEquals()
  98. */
  99. public function assertGreaterOrEquals($expected, $actual, $message = "") {
  100. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterOrEquals', func_get_args()));
  101. }
  102. /**
  103. * [!] Method is generated. Documentation taken from corresponding module.
  104. *
  105. * Asserts that a variable is empty.
  106. *
  107. * @param $actual
  108. * @param string $message
  109. * @see \Codeception\Module\AbstractAsserts::assertIsEmpty()
  110. */
  111. public function assertIsEmpty($actual, $message = "") {
  112. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsEmpty', func_get_args()));
  113. }
  114. /**
  115. * [!] Method is generated. Documentation taken from corresponding module.
  116. *
  117. * Asserts that a value is smaller than or equal to another value.
  118. *
  119. * @param $expected
  120. * @param $actual
  121. * @param string $message
  122. * @see \Codeception\Module\AbstractAsserts::assertLessOrEquals()
  123. */
  124. public function assertLessOrEquals($expected, $actual, $message = "") {
  125. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessOrEquals', func_get_args()));
  126. }
  127. /**
  128. * [!] Method is generated. Documentation taken from corresponding module.
  129. *
  130. * Asserts that a string does not match a given regular expression.
  131. *
  132. * @param string $pattern
  133. * @param string $string
  134. * @param string $message
  135. * @see \Codeception\Module\AbstractAsserts::assertNotRegExp()
  136. */
  137. public function assertNotRegExp($pattern, $string, $message = "") {
  138. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args()));
  139. }
  140. /**
  141. * [!] Method is generated. Documentation taken from corresponding module.
  142. *
  143. * Asserts that a string matches a given regular expression.
  144. *
  145. * @param string $pattern
  146. * @param string $string
  147. * @param string $message
  148. * @see \Codeception\Module\AbstractAsserts::assertRegExp()
  149. */
  150. public function assertRegExp($pattern, $string, $message = "") {
  151. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args()));
  152. }
  153. /**
  154. * [!] Method is generated. Documentation taken from corresponding module.
  155. *
  156. * Evaluates a PHPUnit\Framework\Constraint matcher object.
  157. *
  158. * @param $value
  159. * @param Constraint $constraint
  160. * @param string $message
  161. * @see \Codeception\Module\AbstractAsserts::assertThatItsNot()
  162. */
  163. public function assertThatItsNot($value, $constraint, $message = "") {
  164. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertThatItsNot', func_get_args()));
  165. }
  166. /**
  167. * [!] Method is generated. Documentation taken from corresponding module.
  168. *
  169. * Asserts that an array has a specified key.
  170. *
  171. * @param int|string $key
  172. * @param array|ArrayAccess $array
  173. * @param string $message
  174. * @see \Codeception\Module\AbstractAsserts::assertArrayHasKey()
  175. */
  176. public function assertArrayHasKey($key, $array, $message = "") {
  177. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayHasKey', func_get_args()));
  178. }
  179. /**
  180. * [!] Method is generated. Documentation taken from corresponding module.
  181. *
  182. * Asserts that an array does not have a specified key.
  183. *
  184. * @param int|string $key
  185. * @param array|ArrayAccess $array
  186. * @param string $message
  187. * @see \Codeception\Module\AbstractAsserts::assertArrayNotHasKey()
  188. */
  189. public function assertArrayNotHasKey($key, $array, $message = "") {
  190. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayNotHasKey', func_get_args()));
  191. }
  192. /**
  193. * [!] Method is generated. Documentation taken from corresponding module.
  194. *
  195. * Asserts that a class has a specified attribute.
  196. *
  197. * @param string $attributeName
  198. * @param string $className
  199. * @param string $message
  200. * @see \Codeception\Module\AbstractAsserts::assertClassHasAttribute()
  201. */
  202. public function assertClassHasAttribute($attributeName, $className, $message = "") {
  203. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassHasAttribute', func_get_args()));
  204. }
  205. /**
  206. * [!] Method is generated. Documentation taken from corresponding module.
  207. *
  208. * Asserts that a class has a specified static attribute.
  209. *
  210. * @param string $attributeName
  211. * @param string $className
  212. * @param string $message
  213. * @see \Codeception\Module\AbstractAsserts::assertClassHasStaticAttribute()
  214. */
  215. public function assertClassHasStaticAttribute($attributeName, $className, $message = "") {
  216. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassHasStaticAttribute', func_get_args()));
  217. }
  218. /**
  219. * [!] Method is generated. Documentation taken from corresponding module.
  220. *
  221. * Asserts that a class does not have a specified attribute.
  222. *
  223. * @param string $attributeName
  224. * @param string $className
  225. * @param string $message
  226. * @see \Codeception\Module\AbstractAsserts::assertClassNotHasAttribute()
  227. */
  228. public function assertClassNotHasAttribute($attributeName, $className, $message = "") {
  229. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassNotHasAttribute', func_get_args()));
  230. }
  231. /**
  232. * [!] Method is generated. Documentation taken from corresponding module.
  233. *
  234. * Asserts that a class does not have a specified static attribute.
  235. *
  236. * @param string $attributeName
  237. * @param string $className
  238. * @param string $message
  239. * @see \Codeception\Module\AbstractAsserts::assertClassNotHasStaticAttribute()
  240. */
  241. public function assertClassNotHasStaticAttribute($attributeName, $className, $message = "") {
  242. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassNotHasStaticAttribute', func_get_args()));
  243. }
  244. /**
  245. * [!] Method is generated. Documentation taken from corresponding module.
  246. *
  247. * Asserts that a haystack contains a needle.
  248. *
  249. * @param $needle
  250. * @param $haystack
  251. * @param string $message
  252. * @see \Codeception\Module\AbstractAsserts::assertContains()
  253. */
  254. public function assertContains($needle, $haystack, $message = "") {
  255. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args()));
  256. }
  257. /**
  258. * [!] Method is generated. Documentation taken from corresponding module.
  259. *
  260. * @param $needle
  261. * @param $haystack
  262. * @param string $message
  263. * @see \Codeception\Module\AbstractAsserts::assertContainsEquals()
  264. */
  265. public function assertContainsEquals($needle, $haystack, $message = "") {
  266. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsEquals', func_get_args()));
  267. }
  268. /**
  269. * [!] Method is generated. Documentation taken from corresponding module.
  270. *
  271. * Asserts that a haystack contains only values of a given type.
  272. *
  273. * @param string $type
  274. * @param $haystack
  275. * @param bool|null $isNativeType
  276. * @param string $message
  277. * @see \Codeception\Module\AbstractAsserts::assertContainsOnly()
  278. */
  279. public function assertContainsOnly($type, $haystack, $isNativeType = NULL, $message = "") {
  280. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsOnly', func_get_args()));
  281. }
  282. /**
  283. * [!] Method is generated. Documentation taken from corresponding module.
  284. *
  285. * Asserts that a haystack contains only instances of a given class name.
  286. *
  287. * @param string $className
  288. * @param $haystack
  289. * @param string $message
  290. * @see \Codeception\Module\AbstractAsserts::assertContainsOnlyInstancesOf()
  291. */
  292. public function assertContainsOnlyInstancesOf($className, $haystack, $message = "") {
  293. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsOnlyInstancesOf', func_get_args()));
  294. }
  295. /**
  296. * [!] Method is generated. Documentation taken from corresponding module.
  297. *
  298. * Asserts the number of elements of an array, Countable or Traversable.
  299. *
  300. * @param int $expectedCount
  301. * @param Countable|iterable $haystack
  302. * @param string $message
  303. * @see \Codeception\Module\AbstractAsserts::assertCount()
  304. */
  305. public function assertCount($expectedCount, $haystack, $message = "") {
  306. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertCount', func_get_args()));
  307. }
  308. /**
  309. * [!] Method is generated. Documentation taken from corresponding module.
  310. *
  311. * Asserts that a directory does not exist.
  312. *
  313. * @param string $directory
  314. * @param string $message
  315. * @see \Codeception\Module\AbstractAsserts::assertDirectoryDoesNotExist()
  316. */
  317. public function assertDirectoryDoesNotExist($directory, $message = "") {
  318. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryDoesNotExist', func_get_args()));
  319. }
  320. /**
  321. * [!] Method is generated. Documentation taken from corresponding module.
  322. *
  323. * Asserts that a directory exists.
  324. *
  325. * @param string $directory
  326. * @param string $message
  327. * @see \Codeception\Module\AbstractAsserts::assertDirectoryExists()
  328. */
  329. public function assertDirectoryExists($directory, $message = "") {
  330. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryExists', func_get_args()));
  331. }
  332. /**
  333. * [!] Method is generated. Documentation taken from corresponding module.
  334. *
  335. * Asserts that a directory exists and is not readable.
  336. *
  337. * @param string $directory
  338. * @param string $message
  339. * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsNotReadable()
  340. */
  341. public function assertDirectoryIsNotReadable($directory, $message = "") {
  342. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsNotReadable', func_get_args()));
  343. }
  344. /**
  345. * [!] Method is generated. Documentation taken from corresponding module.
  346. *
  347. * Asserts that a directory exists and is not writable.
  348. *
  349. * @param string $directory
  350. * @param string $message
  351. * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsNotWritable()
  352. */
  353. public function assertDirectoryIsNotWritable($directory, $message = "") {
  354. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsNotWritable', func_get_args()));
  355. }
  356. /**
  357. * [!] Method is generated. Documentation taken from corresponding module.
  358. *
  359. * Asserts that a directory exists and is readable.
  360. *
  361. * @param string $directory
  362. * @param string $message
  363. * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsReadable()
  364. */
  365. public function assertDirectoryIsReadable($directory, $message = "") {
  366. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsReadable', func_get_args()));
  367. }
  368. /**
  369. * [!] Method is generated. Documentation taken from corresponding module.
  370. *
  371. * Asserts that a directory exists and is writable.
  372. *
  373. * @param string $directory
  374. * @param string $message
  375. * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsWritable()
  376. */
  377. public function assertDirectoryIsWritable($directory, $message = "") {
  378. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsWritable', func_get_args()));
  379. }
  380. /**
  381. * [!] Method is generated. Documentation taken from corresponding module.
  382. *
  383. * Asserts that a string does not match a given regular expression.
  384. *
  385. * @param string $pattern
  386. * @param string $string
  387. * @param string $message
  388. * @see \Codeception\Module\AbstractAsserts::assertDoesNotMatchRegularExpression()
  389. */
  390. public function assertDoesNotMatchRegularExpression($pattern, $string, $message = "") {
  391. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDoesNotMatchRegularExpression', func_get_args()));
  392. }
  393. /**
  394. * [!] Method is generated. Documentation taken from corresponding module.
  395. *
  396. * Asserts that a variable is empty.
  397. *
  398. * @param $actual
  399. * @param string $message
  400. * @see \Codeception\Module\AbstractAsserts::assertEmpty()
  401. */
  402. public function assertEmpty($actual, $message = "") {
  403. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args()));
  404. }
  405. /**
  406. * [!] Method is generated. Documentation taken from corresponding module.
  407. *
  408. * Asserts that two variables are equal.
  409. *
  410. * @param $expected
  411. * @param $actual
  412. * @param string $message
  413. * @see \Codeception\Module\AbstractAsserts::assertEquals()
  414. */
  415. public function assertEquals($expected, $actual, $message = "") {
  416. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args()));
  417. }
  418. /**
  419. * [!] Method is generated. Documentation taken from corresponding module.
  420. *
  421. * Asserts that two variables are equal (canonicalizing).
  422. *
  423. * @param $expected
  424. * @param $actual
  425. * @param string $message
  426. * @see \Codeception\Module\AbstractAsserts::assertEqualsCanonicalizing()
  427. */
  428. public function assertEqualsCanonicalizing($expected, $actual, $message = "") {
  429. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsCanonicalizing', func_get_args()));
  430. }
  431. /**
  432. * [!] Method is generated. Documentation taken from corresponding module.
  433. *
  434. * Asserts that two variables are equal (ignoring case).
  435. *
  436. * @param $expected
  437. * @param $actual
  438. * @param string $message
  439. * @see \Codeception\Module\AbstractAsserts::assertEqualsIgnoringCase()
  440. */
  441. public function assertEqualsIgnoringCase($expected, $actual, $message = "") {
  442. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsIgnoringCase', func_get_args()));
  443. }
  444. /**
  445. * [!] Method is generated. Documentation taken from corresponding module.
  446. *
  447. * Asserts that two variables are equal (with delta).
  448. *
  449. * @param $expected
  450. * @param $actual
  451. * @param float $delta
  452. * @param string $message
  453. * @see \Codeception\Module\AbstractAsserts::assertEqualsWithDelta()
  454. */
  455. public function assertEqualsWithDelta($expected, $actual, $delta, $message = "") {
  456. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsWithDelta', func_get_args()));
  457. }
  458. /**
  459. * [!] Method is generated. Documentation taken from corresponding module.
  460. *
  461. * Asserts that a condition is false.
  462. *
  463. * @param $condition
  464. * @param string $message
  465. * @see \Codeception\Module\AbstractAsserts::assertFalse()
  466. */
  467. public function assertFalse($condition, $message = "") {
  468. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args()));
  469. }
  470. /**
  471. * [!] Method is generated. Documentation taken from corresponding module.
  472. *
  473. * Asserts that a file does not exist.
  474. *
  475. * @param string $filename
  476. * @param string $message
  477. * @see \Codeception\Module\AbstractAsserts::assertFileDoesNotExist()
  478. */
  479. public function assertFileDoesNotExist($filename, $message = "") {
  480. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileDoesNotExist', func_get_args()));
  481. }
  482. /**
  483. * [!] Method is generated. Documentation taken from corresponding module.
  484. *
  485. * Asserts that the contents of one file is equal to the contents of another file.
  486. *
  487. * @param string $expected
  488. * @param string $actual
  489. * @param string $message
  490. * @see \Codeception\Module\AbstractAsserts::assertFileEquals()
  491. */
  492. public function assertFileEquals($expected, $actual, $message = "") {
  493. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEquals', func_get_args()));
  494. }
  495. /**
  496. * [!] Method is generated. Documentation taken from corresponding module.
  497. *
  498. * Asserts that the contents of one file is equal to the contents of another file (canonicalizing).
  499. *
  500. * @param $expected
  501. * @param $actual
  502. * @param string $message
  503. * @see \Codeception\Module\AbstractAsserts::assertFileEqualsCanonicalizing()
  504. */
  505. public function assertFileEqualsCanonicalizing($expected, $actual, $message = "") {
  506. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEqualsCanonicalizing', func_get_args()));
  507. }
  508. /**
  509. * [!] Method is generated. Documentation taken from corresponding module.
  510. *
  511. * Asserts that the contents of one file is equal to the contents of another file (ignoring case).
  512. *
  513. * @param $expected
  514. * @param $actual
  515. * @param string $message
  516. * @see \Codeception\Module\AbstractAsserts::assertFileEqualsIgnoringCase()
  517. */
  518. public function assertFileEqualsIgnoringCase($expected, $actual, $message = "") {
  519. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEqualsIgnoringCase', func_get_args()));
  520. }
  521. /**
  522. * [!] Method is generated. Documentation taken from corresponding module.
  523. *
  524. * Asserts that a file exists.
  525. *
  526. * @param string $filename
  527. * @param string $message
  528. * @see \Codeception\Module\AbstractAsserts::assertFileExists()
  529. */
  530. public function assertFileExists($filename, $message = "") {
  531. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args()));
  532. }
  533. /**
  534. * [!] Method is generated. Documentation taken from corresponding module.
  535. *
  536. * Asserts that a file exists and is not readable.
  537. *
  538. * @param string $file
  539. * @param string $message
  540. * @see \Codeception\Module\AbstractAsserts::assertFileIsNotReadable()
  541. */
  542. public function assertFileIsNotReadable($file, $message = "") {
  543. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsNotReadable', func_get_args()));
  544. }
  545. /**
  546. * [!] Method is generated. Documentation taken from corresponding module.
  547. *
  548. * Asserts that a file exists and is not writable.
  549. *
  550. * @param string $file
  551. * @param string $message
  552. * @see \Codeception\Module\AbstractAsserts::assertFileIsNotWritable()
  553. */
  554. public function assertFileIsNotWritable($file, $message = "") {
  555. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsNotWritable', func_get_args()));
  556. }
  557. /**
  558. * [!] Method is generated. Documentation taken from corresponding module.
  559. *
  560. * Asserts that a file exists and is readable.
  561. *
  562. * @param string $file
  563. * @param string $message
  564. * @see \Codeception\Module\AbstractAsserts::assertFileIsReadable()
  565. */
  566. public function assertFileIsReadable($file, $message = "") {
  567. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsReadable', func_get_args()));
  568. }
  569. /**
  570. * [!] Method is generated. Documentation taken from corresponding module.
  571. *
  572. * Asserts that a file exists and is writable.
  573. *
  574. * @param string $file
  575. * @param string $message
  576. * @see \Codeception\Module\AbstractAsserts::assertFileIsWritable()
  577. */
  578. public function assertFileIsWritable($file, $message = "") {
  579. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsWritable', func_get_args()));
  580. }
  581. /**
  582. * [!] Method is generated. Documentation taken from corresponding module.
  583. *
  584. * Asserts that the contents of one file is not equal to the contents of another file.
  585. *
  586. * @param $expected
  587. * @param $actual
  588. * @param string $message
  589. * @see \Codeception\Module\AbstractAsserts::assertFileNotEquals()
  590. */
  591. public function assertFileNotEquals($expected, $actual, $message = "") {
  592. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEquals', func_get_args()));
  593. }
  594. /**
  595. * [!] Method is generated. Documentation taken from corresponding module.
  596. *
  597. * Asserts that the contents of one file is not equal to the contents of another file (canonicalizing).
  598. *
  599. * @param $expected
  600. * @param $actual
  601. * @param string $message
  602. * @see \Codeception\Module\AbstractAsserts::assertFileNotEqualsCanonicalizing()
  603. */
  604. public function assertFileNotEqualsCanonicalizing($expected, $actual, $message = "") {
  605. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEqualsCanonicalizing', func_get_args()));
  606. }
  607. /**
  608. * [!] Method is generated. Documentation taken from corresponding module.
  609. *
  610. * Asserts that the contents of one file is not equal to the contents of another file (ignoring case).
  611. *
  612. * @param $expected
  613. * @param $actual
  614. * @param string $message
  615. * @see \Codeception\Module\AbstractAsserts::assertFileNotEqualsIgnoringCase()
  616. */
  617. public function assertFileNotEqualsIgnoringCase($expected, $actual, $message = "") {
  618. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEqualsIgnoringCase', func_get_args()));
  619. }
  620. /**
  621. * [!] Method is generated. Documentation taken from corresponding module.
  622. *
  623. * Asserts that a variable is finite.
  624. *
  625. * @param $actual
  626. * @param string $message
  627. * @see \Codeception\Module\AbstractAsserts::assertFinite()
  628. */
  629. public function assertFinite($actual, $message = "") {
  630. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFinite', func_get_args()));
  631. }
  632. /**
  633. * [!] Method is generated. Documentation taken from corresponding module.
  634. *
  635. * Asserts that a value is greater than another value.
  636. *
  637. * @param $expected
  638. * @param $actual
  639. * @param string $message
  640. * @see \Codeception\Module\AbstractAsserts::assertGreaterThan()
  641. */
  642. public function assertGreaterThan($expected, $actual, $message = "") {
  643. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args()));
  644. }
  645. /**
  646. * [!] Method is generated. Documentation taken from corresponding module.
  647. *
  648. * Asserts that a value is greater than or equal to another value.
  649. *
  650. * @param $expected
  651. * @param $actual
  652. * @param string $message
  653. * @see \Codeception\Module\AbstractAsserts::assertGreaterThanOrEqual()
  654. */
  655. public function assertGreaterThanOrEqual($expected, $actual, $message = "") {
  656. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args()));
  657. }
  658. /**
  659. * [!] Method is generated. Documentation taken from corresponding module.
  660. *
  661. * Asserts that a variable is infinite.
  662. *
  663. * @param $actual
  664. * @param string $message
  665. * @see \Codeception\Module\AbstractAsserts::assertInfinite()
  666. */
  667. public function assertInfinite($actual, $message = "") {
  668. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInfinite', func_get_args()));
  669. }
  670. /**
  671. * [!] Method is generated. Documentation taken from corresponding module.
  672. *
  673. * Asserts that a variable is of a given type.
  674. *
  675. * @param $expected
  676. * @param $actual
  677. * @param string $message
  678. * @see \Codeception\Module\AbstractAsserts::assertInstanceOf()
  679. */
  680. public function assertInstanceOf($expected, $actual, $message = "") {
  681. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInstanceOf', func_get_args()));
  682. }
  683. /**
  684. * [!] Method is generated. Documentation taken from corresponding module.
  685. *
  686. * Asserts that a variable is of type array.
  687. *
  688. * @param $actual
  689. * @param string $message
  690. * @see \Codeception\Module\AbstractAsserts::assertIsArray()
  691. */
  692. public function assertIsArray($actual, $message = "") {
  693. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsArray', func_get_args()));
  694. }
  695. /**
  696. * [!] Method is generated. Documentation taken from corresponding module.
  697. *
  698. * Asserts that a variable is of type bool.
  699. *
  700. * @param $actual
  701. * @param string $message
  702. * @see \Codeception\Module\AbstractAsserts::assertIsBool()
  703. */
  704. public function assertIsBool($actual, $message = "") {
  705. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsBool', func_get_args()));
  706. }
  707. /**
  708. * [!] Method is generated. Documentation taken from corresponding module.
  709. *
  710. * Asserts that a variable is of type callable.
  711. *
  712. * @param $actual
  713. * @param string $message
  714. * @see \Codeception\Module\AbstractAsserts::assertIsCallable()
  715. */
  716. public function assertIsCallable($actual, $message = "") {
  717. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsCallable', func_get_args()));
  718. }
  719. /**
  720. * [!] Method is generated. Documentation taken from corresponding module.
  721. *
  722. * Asserts that a variable is of type resource and is closed.
  723. *
  724. * @param $actual
  725. * @param string $message
  726. * @see \Codeception\Module\AbstractAsserts::assertIsClosedResource()
  727. */
  728. public function assertIsClosedResource($actual, $message = "") {
  729. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsClosedResource', func_get_args()));
  730. }
  731. /**
  732. * [!] Method is generated. Documentation taken from corresponding module.
  733. *
  734. * Asserts that a variable is of type float.
  735. *
  736. * @param $actual
  737. * @param string $message
  738. * @see \Codeception\Module\AbstractAsserts::assertIsFloat()
  739. */
  740. public function assertIsFloat($actual, $message = "") {
  741. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsFloat', func_get_args()));
  742. }
  743. /**
  744. * [!] Method is generated. Documentation taken from corresponding module.
  745. *
  746. * Asserts that a variable is of type int.
  747. *
  748. * @param $actual
  749. * @param string $message
  750. * @see \Codeception\Module\AbstractAsserts::assertIsInt()
  751. */
  752. public function assertIsInt($actual, $message = "") {
  753. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsInt', func_get_args()));
  754. }
  755. /**
  756. * [!] Method is generated. Documentation taken from corresponding module.
  757. *
  758. * Asserts that a variable is of type iterable.
  759. *
  760. * @param $actual
  761. * @param string $message
  762. * @see \Codeception\Module\AbstractAsserts::assertIsIterable()
  763. */
  764. public function assertIsIterable($actual, $message = "") {
  765. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsIterable', func_get_args()));
  766. }
  767. /**
  768. * [!] Method is generated. Documentation taken from corresponding module.
  769. *
  770. * Asserts that a variable is not of type array.
  771. *
  772. * @param $actual
  773. * @param string $message
  774. * @see \Codeception\Module\AbstractAsserts::assertIsNotArray()
  775. */
  776. public function assertIsNotArray($actual, $message = "") {
  777. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotArray', func_get_args()));
  778. }
  779. /**
  780. * [!] Method is generated. Documentation taken from corresponding module.
  781. *
  782. * Asserts that a variable is not of type bool.
  783. *
  784. * @param $actual
  785. * @param string $message
  786. * @see \Codeception\Module\AbstractAsserts::assertIsNotBool()
  787. */
  788. public function assertIsNotBool($actual, $message = "") {
  789. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotBool', func_get_args()));
  790. }
  791. /**
  792. * [!] Method is generated. Documentation taken from corresponding module.
  793. *
  794. * Asserts that a variable is not of type callable.
  795. *
  796. * @param $actual
  797. * @param string $message
  798. * @see \Codeception\Module\AbstractAsserts::assertIsNotCallable()
  799. */
  800. public function assertIsNotCallable($actual, $message = "") {
  801. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotCallable', func_get_args()));
  802. }
  803. /**
  804. * [!] Method is generated. Documentation taken from corresponding module.
  805. *
  806. * Asserts that a variable is not of type resource.
  807. *
  808. * @param $actual
  809. * @param string $message
  810. * @see \Codeception\Module\AbstractAsserts::assertIsNotClosedResource()
  811. */
  812. public function assertIsNotClosedResource($actual, $message = "") {
  813. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotClosedResource', func_get_args()));
  814. }
  815. /**
  816. * [!] Method is generated. Documentation taken from corresponding module.
  817. *
  818. * Asserts that a variable is not of type float.
  819. *
  820. * @param $actual
  821. * @param string $message
  822. * @see \Codeception\Module\AbstractAsserts::assertIsNotFloat()
  823. */
  824. public function assertIsNotFloat($actual, $message = "") {
  825. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotFloat', func_get_args()));
  826. }
  827. /**
  828. * [!] Method is generated. Documentation taken from corresponding module.
  829. *
  830. * Asserts that a variable is not of type int.
  831. *
  832. * @param $actual
  833. * @param string $message
  834. * @see \Codeception\Module\AbstractAsserts::assertIsNotInt()
  835. */
  836. public function assertIsNotInt($actual, $message = "") {
  837. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotInt', func_get_args()));
  838. }
  839. /**
  840. * [!] Method is generated. Documentation taken from corresponding module.
  841. *
  842. * Asserts that a variable is not of type iterable.
  843. *
  844. * @param $actual
  845. * @param string $message
  846. * @see \Codeception\Module\AbstractAsserts::assertIsNotIterable()
  847. */
  848. public function assertIsNotIterable($actual, $message = "") {
  849. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotIterable', func_get_args()));
  850. }
  851. /**
  852. * [!] Method is generated. Documentation taken from corresponding module.
  853. *
  854. * Asserts that a variable is not of type numeric.
  855. *
  856. * @param $actual
  857. * @param string $message
  858. * @see \Codeception\Module\AbstractAsserts::assertIsNotNumeric()
  859. */
  860. public function assertIsNotNumeric($actual, $message = "") {
  861. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotNumeric', func_get_args()));
  862. }
  863. /**
  864. * [!] Method is generated. Documentation taken from corresponding module.
  865. *
  866. * Asserts that a variable is not of type object.
  867. *
  868. * @param $actual
  869. * @param string $message
  870. * @see \Codeception\Module\AbstractAsserts::assertIsNotObject()
  871. */
  872. public function assertIsNotObject($actual, $message = "") {
  873. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotObject', func_get_args()));
  874. }
  875. /**
  876. * [!] Method is generated. Documentation taken from corresponding module.
  877. *
  878. * Asserts that a file/dir exists and is not readable.
  879. *
  880. * @param string $filename
  881. * @param string $message
  882. * @see \Codeception\Module\AbstractAsserts::assertIsNotReadable()
  883. */
  884. public function assertIsNotReadable($filename, $message = "") {
  885. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotReadable', func_get_args()));
  886. }
  887. /**
  888. * [!] Method is generated. Documentation taken from corresponding module.
  889. *
  890. * Asserts that a variable is not of type resource.
  891. *
  892. * @param $actual
  893. * @param string $message
  894. * @see \Codeception\Module\AbstractAsserts::assertIsNotResource()
  895. */
  896. public function assertIsNotResource($actual, $message = "") {
  897. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotResource', func_get_args()));
  898. }
  899. /**
  900. * [!] Method is generated. Documentation taken from corresponding module.
  901. *
  902. * Asserts that a variable is not of type scalar.
  903. *
  904. * @param $actual
  905. * @param string $message
  906. * @see \Codeception\Module\AbstractAsserts::assertIsNotScalar()
  907. */
  908. public function assertIsNotScalar($actual, $message = "") {
  909. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotScalar', func_get_args()));
  910. }
  911. /**
  912. * [!] Method is generated. Documentation taken from corresponding module.
  913. *
  914. * Asserts that a variable is not of type string.
  915. *
  916. * @param $actual
  917. * @param string $message
  918. * @see \Codeception\Module\AbstractAsserts::assertIsNotString()
  919. */
  920. public function assertIsNotString($actual, $message = "") {
  921. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotString', func_get_args()));
  922. }
  923. /**
  924. * [!] Method is generated. Documentation taken from corresponding module.
  925. *
  926. * Asserts that a file/dir exists and is not writable.
  927. *
  928. * @param $filename
  929. * @param string $message
  930. * @see \Codeception\Module\AbstractAsserts::assertIsNotWritable()
  931. */
  932. public function assertIsNotWritable($filename, $message = "") {
  933. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotWritable', func_get_args()));
  934. }
  935. /**
  936. * [!] Method is generated. Documentation taken from corresponding module.
  937. *
  938. * Asserts that a variable is of type numeric.
  939. *
  940. * @param $actual
  941. * @param string $message
  942. * @see \Codeception\Module\AbstractAsserts::assertIsNumeric()
  943. */
  944. public function assertIsNumeric($actual, $message = "") {
  945. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNumeric', func_get_args()));
  946. }
  947. /**
  948. * [!] Method is generated. Documentation taken from corresponding module.
  949. *
  950. * Asserts that a variable is of type object.
  951. *
  952. * @param $actual
  953. * @param string $message
  954. * @see \Codeception\Module\AbstractAsserts::assertIsObject()
  955. */
  956. public function assertIsObject($actual, $message = "") {
  957. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsObject', func_get_args()));
  958. }
  959. /**
  960. * [!] Method is generated. Documentation taken from corresponding module.
  961. *
  962. * Asserts that a file/dir is readable.
  963. *
  964. * @param $filename
  965. * @param string $message
  966. * @see \Codeception\Module\AbstractAsserts::assertIsReadable()
  967. */
  968. public function assertIsReadable($filename, $message = "") {
  969. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsReadable', func_get_args()));
  970. }
  971. /**
  972. * [!] Method is generated. Documentation taken from corresponding module.
  973. *
  974. * Asserts that a variable is of type resource.
  975. *
  976. * @param $actual
  977. * @param string $message
  978. * @see \Codeception\Module\AbstractAsserts::assertIsResource()
  979. */
  980. public function assertIsResource($actual, $message = "") {
  981. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsResource', func_get_args()));
  982. }
  983. /**
  984. * [!] Method is generated. Documentation taken from corresponding module.
  985. *
  986. * Asserts that a variable is of type scalar.
  987. *
  988. * @param $actual
  989. * @param string $message
  990. * @see \Codeception\Module\AbstractAsserts::assertIsScalar()
  991. */
  992. public function assertIsScalar($actual, $message = "") {
  993. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsScalar', func_get_args()));
  994. }
  995. /**
  996. * [!] Method is generated. Documentation taken from corresponding module.
  997. *
  998. * Asserts that a variable is of type string.
  999. *
  1000. * @param $actual
  1001. * @param string $message
  1002. * @see \Codeception\Module\AbstractAsserts::assertIsString()
  1003. */
  1004. public function assertIsString($actual, $message = "") {
  1005. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsString', func_get_args()));
  1006. }
  1007. /**
  1008. * [!] Method is generated. Documentation taken from corresponding module.
  1009. *
  1010. * Asserts that a file/dir exists and is writable.
  1011. *
  1012. * @param $filename
  1013. * @param string $message
  1014. * @see \Codeception\Module\AbstractAsserts::assertIsWritable()
  1015. */
  1016. public function assertIsWritable($filename, $message = "") {
  1017. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsWritable', func_get_args()));
  1018. }
  1019. /**
  1020. * [!] Method is generated. Documentation taken from corresponding module.
  1021. *
  1022. * Asserts that a string is a valid JSON string.
  1023. *
  1024. * @param string $actualJson
  1025. * @param string $message
  1026. * @see \Codeception\Module\AbstractAsserts::assertJson()
  1027. */
  1028. public function assertJson($actualJson, $message = "") {
  1029. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJson', func_get_args()));
  1030. }
  1031. /**
  1032. * [!] Method is generated. Documentation taken from corresponding module.
  1033. *
  1034. * Asserts that two JSON files are equal.
  1035. *
  1036. * @param string $expectedFile
  1037. * @param string $actualFile
  1038. * @param string $message
  1039. * @see \Codeception\Module\AbstractAsserts::assertJsonFileEqualsJsonFile()
  1040. */
  1041. public function assertJsonFileEqualsJsonFile($expectedFile, $actualFile, $message = "") {
  1042. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonFileEqualsJsonFile', func_get_args()));
  1043. }
  1044. /**
  1045. * [!] Method is generated. Documentation taken from corresponding module.
  1046. *
  1047. * Asserts that two JSON files are not equal.
  1048. *
  1049. * @param string $expectedFile
  1050. * @param string $actualFile
  1051. * @param string $message
  1052. * @see \Codeception\Module\AbstractAsserts::assertJsonFileNotEqualsJsonFile()
  1053. */
  1054. public function assertJsonFileNotEqualsJsonFile($expectedFile, $actualFile, $message = "") {
  1055. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonFileNotEqualsJsonFile', func_get_args()));
  1056. }
  1057. /**
  1058. * [!] Method is generated. Documentation taken from corresponding module.
  1059. *
  1060. * Asserts that the generated JSON encoded object and the content of the given file are equal.
  1061. *
  1062. * @param string $expectedFile
  1063. * @param string $actualJson
  1064. * @param string $message
  1065. * @see \Codeception\Module\AbstractAsserts::assertJsonStringEqualsJsonFile()
  1066. */
  1067. public function assertJsonStringEqualsJsonFile($expectedFile, $actualJson, $message = "") {
  1068. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringEqualsJsonFile', func_get_args()));
  1069. }
  1070. /**
  1071. * [!] Method is generated. Documentation taken from corresponding module.
  1072. *
  1073. * Asserts that two given JSON encoded objects or arrays are equal.
  1074. *
  1075. * @param string $expectedJson
  1076. * @param string $actualJson
  1077. * @param string $message
  1078. * @see \Codeception\Module\AbstractAsserts::assertJsonStringEqualsJsonString()
  1079. */
  1080. public function assertJsonStringEqualsJsonString($expectedJson, $actualJson, $message = "") {
  1081. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringEqualsJsonString', func_get_args()));
  1082. }
  1083. /**
  1084. * [!] Method is generated. Documentation taken from corresponding module.
  1085. *
  1086. * Asserts that the generated JSON encoded object and the content of the given file are not equal.
  1087. *
  1088. * @param string $expectedFile
  1089. * @param string $actualJson
  1090. * @param string $message
  1091. * @see \Codeception\Module\AbstractAsserts::assertJsonStringNotEqualsJsonFile()
  1092. */
  1093. public function assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = "") {
  1094. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringNotEqualsJsonFile', func_get_args()));
  1095. }
  1096. /**
  1097. * [!] Method is generated. Documentation taken from corresponding module.
  1098. *
  1099. * Asserts that two given JSON encoded objects or arrays are not equal.
  1100. *
  1101. * @param string $expectedJson
  1102. * @param string $actualJson
  1103. * @param string $message
  1104. * @see \Codeception\Module\AbstractAsserts::assertJsonStringNotEqualsJsonString()
  1105. */
  1106. public function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = "") {
  1107. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringNotEqualsJsonString', func_get_args()));
  1108. }
  1109. /**
  1110. * [!] Method is generated. Documentation taken from corresponding module.
  1111. *
  1112. * Asserts that a value is smaller than another value.
  1113. *
  1114. * @param $expected
  1115. * @param $actual
  1116. * @param string $message
  1117. * @see \Codeception\Module\AbstractAsserts::assertLessThan()
  1118. */
  1119. public function assertLessThan($expected, $actual, $message = "") {
  1120. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args()));
  1121. }
  1122. /**
  1123. * [!] Method is generated. Documentation taken from corresponding module.
  1124. *
  1125. * Asserts that a value is smaller than or equal to another value.
  1126. *
  1127. * @param $expected
  1128. * @param $actual
  1129. * @param string $message
  1130. * @see \Codeception\Module\AbstractAsserts::assertLessThanOrEqual()
  1131. */
  1132. public function assertLessThanOrEqual($expected, $actual, $message = "") {
  1133. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args()));
  1134. }
  1135. /**
  1136. * [!] Method is generated. Documentation taken from corresponding module.
  1137. *
  1138. * Asserts that a string matches a given regular expression.
  1139. *
  1140. * @param string $pattern
  1141. * @param string $string
  1142. * @param string $message
  1143. * @see \Codeception\Module\AbstractAsserts::assertMatchesRegularExpression()
  1144. */
  1145. public function assertMatchesRegularExpression($pattern, $string, $message = "") {
  1146. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertMatchesRegularExpression', func_get_args()));
  1147. }
  1148. /**
  1149. * [!] Method is generated. Documentation taken from corresponding module.
  1150. *
  1151. * Asserts that a variable is nan.
  1152. *
  1153. * @param $actual
  1154. * @param string $message
  1155. * @see \Codeception\Module\AbstractAsserts::assertNan()
  1156. */
  1157. public function assertNan($actual, $message = "") {
  1158. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNan', func_get_args()));
  1159. }
  1160. /**
  1161. * [!] Method is generated. Documentation taken from corresponding module.
  1162. *
  1163. * Asserts that a haystack does not contain a needle.
  1164. *
  1165. * @param $needle
  1166. * @param $haystack
  1167. * @param string $message
  1168. * @see \Codeception\Module\AbstractAsserts::assertNotContains()
  1169. */
  1170. public function assertNotContains($needle, $haystack, $message = "") {
  1171. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args()));
  1172. }
  1173. /**
  1174. * [!] Method is generated. Documentation taken from corresponding module.
  1175. *
  1176. *
  1177. * @see \Codeception\Module\AbstractAsserts::assertNotContainsEquals()
  1178. */
  1179. public function assertNotContainsEquals($needle, $haystack, $message = "") {
  1180. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContainsEquals', func_get_args()));
  1181. }
  1182. /**
  1183. * [!] Method is generated. Documentation taken from corresponding module.
  1184. *
  1185. * Asserts that a haystack does not contain only values of a given type.
  1186. *
  1187. * @param string $type
  1188. * @param $haystack
  1189. * @param bool|null $isNativeType
  1190. * @param string $message
  1191. * @see \Codeception\Module\AbstractAsserts::assertNotContainsOnly()
  1192. */
  1193. public function assertNotContainsOnly($type, $haystack, $isNativeType = NULL, $message = "") {
  1194. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContainsOnly', func_get_args()));
  1195. }
  1196. /**
  1197. * [!] Method is generated. Documentation taken from corresponding module.
  1198. *
  1199. * Asserts the number of elements of an array, Countable or Traversable.
  1200. *
  1201. * @param int $expectedCount
  1202. * @param Countable|iterable $haystack
  1203. * @param string $message
  1204. * @see \Codeception\Module\AbstractAsserts::assertNotCount()
  1205. */
  1206. public function assertNotCount($expectedCount, $haystack, $message = "") {
  1207. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotCount', func_get_args()));
  1208. }
  1209. /**
  1210. * [!] Method is generated. Documentation taken from corresponding module.
  1211. *
  1212. * Asserts that a variable is not empty.
  1213. *
  1214. * @param $actual
  1215. * @param string $message
  1216. * @see \Codeception\Module\AbstractAsserts::assertNotEmpty()
  1217. */
  1218. public function assertNotEmpty($actual, $message = "") {
  1219. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args()));
  1220. }
  1221. /**
  1222. * [!] Method is generated. Documentation taken from corresponding module.
  1223. *
  1224. * Asserts that two variables are not equal.
  1225. *
  1226. * @param $expected
  1227. * @param $actual
  1228. * @param string $message
  1229. * @see \Codeception\Module\AbstractAsserts::assertNotEquals()
  1230. */
  1231. public function assertNotEquals($expected, $actual, $message = "") {
  1232. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args()));
  1233. }
  1234. /**
  1235. * [!] Method is generated. Documentation taken from corresponding module.
  1236. *
  1237. * Asserts that two variables are not equal (canonicalizing).
  1238. *
  1239. * @param $expected
  1240. * @param $actual
  1241. * @param string $message
  1242. * @see \Codeception\Module\AbstractAsserts::assertNotEqualsCanonicalizing()
  1243. */
  1244. public function assertNotEqualsCanonicalizing($expected, $actual, $message = "") {
  1245. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsCanonicalizing', func_get_args()));
  1246. }
  1247. /**
  1248. * [!] Method is generated. Documentation taken from corresponding module.
  1249. *
  1250. * Asserts that two variables are not equal (ignoring case).
  1251. *
  1252. * @param $expected
  1253. * @param $actual
  1254. * @param string $message
  1255. * @see \Codeception\Module\AbstractAsserts::assertNotEqualsIgnoringCase()
  1256. */
  1257. public function assertNotEqualsIgnoringCase($expected, $actual, $message = "") {
  1258. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsIgnoringCase', func_get_args()));
  1259. }
  1260. /**
  1261. * [!] Method is generated. Documentation taken from corresponding module.
  1262. *
  1263. * Asserts that two variables are not equal (with delta).
  1264. *
  1265. * @param $expected
  1266. * @param $actual
  1267. * @param float $delta
  1268. * @param string $message
  1269. * @see \Codeception\Module\AbstractAsserts::assertNotEqualsWithDelta()
  1270. */
  1271. public function assertNotEqualsWithDelta($expected, $actual, $delta, $message = "") {
  1272. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsWithDelta', func_get_args()));
  1273. }
  1274. /**
  1275. * [!] Method is generated. Documentation taken from corresponding module.
  1276. *
  1277. * Asserts that a condition is not false.
  1278. *
  1279. * @param $condition
  1280. * @param string $message
  1281. * @see \Codeception\Module\AbstractAsserts::assertNotFalse()
  1282. */
  1283. public function assertNotFalse($condition, $message = "") {
  1284. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotFalse', func_get_args()));
  1285. }
  1286. /**
  1287. * [!] Method is generated. Documentation taken from corresponding module.
  1288. *
  1289. * Asserts that a variable is not of a given type.
  1290. *
  1291. * @param $expected
  1292. * @param $actual
  1293. * @param string $message
  1294. * @see \Codeception\Module\AbstractAsserts::assertNotInstanceOf()
  1295. */
  1296. public function assertNotInstanceOf($expected, $actual, $message = "") {
  1297. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotInstanceOf', func_get_args()));
  1298. }
  1299. /**
  1300. * [!] Method is generated. Documentation taken from corresponding module.
  1301. *
  1302. * Asserts that a variable is not null.
  1303. *
  1304. * @param $actual
  1305. * @param string $message
  1306. * @see \Codeception\Module\AbstractAsserts::assertNotNull()
  1307. */
  1308. public function assertNotNull($actual, $message = "") {
  1309. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args()));
  1310. }
  1311. /**
  1312. * [!] Method is generated. Documentation taken from corresponding module.
  1313. *
  1314. * Asserts that two variables do not have the same type and value.
  1315. *
  1316. * @param $expected
  1317. * @param $actual
  1318. * @param string $message
  1319. * @see \Codeception\Module\AbstractAsserts::assertNotSame()
  1320. */
  1321. public function assertNotSame($expected, $actual, $message = "") {
  1322. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args()));
  1323. }
  1324. /**
  1325. * [!] Method is generated. Documentation taken from corresponding module.
  1326. *
  1327. * Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
  1328. *
  1329. * @param Countable|iterable $expected
  1330. * @param Countable|iterable $actual
  1331. * @param string $message
  1332. * @see \Codeception\Module\AbstractAsserts::assertNotSameSize()
  1333. */
  1334. public function assertNotSameSize($expected, $actual, $message = "") {
  1335. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSameSize', func_get_args()));
  1336. }
  1337. /**
  1338. * [!] Method is generated. Documentation taken from corresponding module.
  1339. *
  1340. * Asserts that a condition is not true.
  1341. *
  1342. * @param $condition
  1343. * @param string $message
  1344. * @see \Codeception\Module\AbstractAsserts::assertNotTrue()
  1345. */
  1346. public function assertNotTrue($condition, $message = "") {
  1347. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotTrue', func_get_args()));
  1348. }
  1349. /**
  1350. * [!] Method is generated. Documentation taken from corresponding module.
  1351. *
  1352. * Asserts that a variable is null.
  1353. *
  1354. * @param $actual
  1355. * @param string $message
  1356. * @see \Codeception\Module\AbstractAsserts::assertNull()
  1357. */
  1358. public function assertNull($actual, $message = "") {
  1359. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args()));
  1360. }
  1361. /**
  1362. * [!] Method is generated. Documentation taken from corresponding module.
  1363. *
  1364. * Asserts that an object has a specified attribute.
  1365. *
  1366. * @param string $attributeName
  1367. * @param object $object
  1368. * @param string $message
  1369. * @see \Codeception\Module\AbstractAsserts::assertObjectHasAttribute()
  1370. */
  1371. public function assertObjectHasAttribute($attributeName, $object, $message = "") {
  1372. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertObjectHasAttribute', func_get_args()));
  1373. }
  1374. /**
  1375. * [!] Method is generated. Documentation taken from corresponding module.
  1376. *
  1377. * Asserts that an object does not have a specified attribute.
  1378. *
  1379. * @param string $attributeName
  1380. * @param object $object
  1381. * @param string $message
  1382. * @see \Codeception\Module\AbstractAsserts::assertObjectNotHasAttribute()
  1383. */
  1384. public function assertObjectNotHasAttribute($attributeName, $object, $message = "") {
  1385. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertObjectNotHasAttribute', func_get_args()));
  1386. }
  1387. /**
  1388. * [!] Method is generated. Documentation taken from corresponding module.
  1389. *
  1390. * Asserts that two variables have the same type and value.
  1391. *
  1392. * @param $expected
  1393. * @param $actual
  1394. * @param string $message
  1395. * @see \Codeception\Module\AbstractAsserts::assertSame()
  1396. */
  1397. public function assertSame($expected, $actual, $message = "") {
  1398. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args()));
  1399. }
  1400. /**
  1401. * [!] Method is generated. Documentation taken from corresponding module.
  1402. *
  1403. * Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
  1404. *
  1405. * @param Countable|iterable $expected
  1406. * @param Countable|iterable $actual
  1407. * @param string $message
  1408. * @see \Codeception\Module\AbstractAsserts::assertSameSize()
  1409. */
  1410. public function assertSameSize($expected, $actual, $message = "") {
  1411. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSameSize', func_get_args()));
  1412. }
  1413. /**
  1414. * [!] Method is generated. Documentation taken from corresponding module.
  1415. *
  1416. * @param string $needle
  1417. * @param string $haystack
  1418. * @param string $message
  1419. * @see \Codeception\Module\AbstractAsserts::assertStringContainsString()
  1420. */
  1421. public function assertStringContainsString($needle, $haystack, $message = "") {
  1422. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsString', func_get_args()));
  1423. }
  1424. /**
  1425. * [!] Method is generated. Documentation taken from corresponding module.
  1426. *
  1427. *
  1428. * @see \Codeception\Module\AbstractAsserts::assertStringContainsStringIgnoringCase()
  1429. */
  1430. public function assertStringContainsStringIgnoringCase($needle, $haystack, $message = "") {
  1431. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsStringIgnoringCase', func_get_args()));
  1432. }
  1433. /**
  1434. * [!] Method is generated. Documentation taken from corresponding module.
  1435. *
  1436. * Asserts that a string ends not with a given suffix.
  1437. *
  1438. * @param string $suffix
  1439. * @param string $string
  1440. * @param string $message
  1441. * @see \Codeception\Module\AbstractAsserts::assertStringEndsNotWith()
  1442. */
  1443. public function assertStringEndsNotWith($suffix, $string, $message = "") {
  1444. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsNotWith', func_get_args()));
  1445. }
  1446. /**
  1447. * [!] Method is generated. Documentation taken from corresponding module.
  1448. *
  1449. * Asserts that a string ends with a given suffix.
  1450. *
  1451. * @param string $suffix
  1452. * @param string $string
  1453. * @param string $message
  1454. * @see \Codeception\Module\AbstractAsserts::assertStringEndsWith()
  1455. */
  1456. public function assertStringEndsWith($suffix, $string, $message = "") {
  1457. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsWith', func_get_args()));
  1458. }
  1459. /**
  1460. * [!] Method is generated. Documentation taken from corresponding module.
  1461. *
  1462. * Asserts that the contents of a string is equal to the contents of a file.
  1463. *
  1464. * @param string $expectedFile
  1465. * @param string $actualString
  1466. * @param string $message
  1467. * @see \Codeception\Module\AbstractAsserts::assertStringEqualsFile()
  1468. */
  1469. public function assertStringEqualsFile($expectedFile, $actualString, $message = "") {
  1470. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFile', func_get_args()));
  1471. }
  1472. /**
  1473. * [!] Method is generated. Documentation taken from corresponding module.
  1474. *
  1475. * Asserts that the contents of a string is equal to the contents of a file (canonicalizing).
  1476. *
  1477. * @param string $expectedFile
  1478. * @param string $actualString
  1479. * @param string $message
  1480. * @see \Codeception\Module\AbstractAsserts::assertStringEqualsFileCanonicalizing()
  1481. */
  1482. public function assertStringEqualsFileCanonicalizing($expectedFile, $actualString, $message = "") {
  1483. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFileCanonicalizing', func_get_args()));
  1484. }
  1485. /**
  1486. * [!] Method is generated. Documentation taken from corresponding module.
  1487. *
  1488. * Asserts that the contents of a string is equal to the contents of a file (ignoring case).
  1489. *
  1490. * @param string $expectedFile
  1491. * @param string $actualString
  1492. * @param string $message
  1493. * @see \Codeception\Module\AbstractAsserts::assertStringEqualsFileIgnoringCase()
  1494. */
  1495. public function assertStringEqualsFileIgnoringCase($expectedFile, $actualString, $message = "") {
  1496. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFileIgnoringCase', func_get_args()));
  1497. }
  1498. /**
  1499. * [!] Method is generated. Documentation taken from corresponding module.
  1500. *
  1501. * Asserts that a string matches a given format string.
  1502. *
  1503. * @param string $format
  1504. * @param string $string
  1505. * @param string $message
  1506. * @see \Codeception\Module\AbstractAsserts::assertStringMatchesFormat()
  1507. */
  1508. public function assertStringMatchesFormat($format, $string, $message = "") {
  1509. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringMatchesFormat', func_get_args()));
  1510. }
  1511. /**
  1512. * [!] Method is generated. Documentation taken from corresponding module.
  1513. *
  1514. * Asserts that a string matches a given format file.
  1515. *
  1516. * @param string $formatFile
  1517. * @param string $string
  1518. * @param string $message
  1519. * @see \Codeception\Module\AbstractAsserts::assertStringMatchesFormatFile()
  1520. */
  1521. public function assertStringMatchesFormatFile($formatFile, $string, $message = "") {
  1522. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringMatchesFormatFile', func_get_args()));
  1523. }
  1524. /**
  1525. * [!] Method is generated. Documentation taken from corresponding module.
  1526. *
  1527. * @param string $needle
  1528. * @param string $haystack
  1529. * @param string $message
  1530. * @see \Codeception\Module\AbstractAsserts::assertStringNotContainsString()
  1531. */
  1532. public function assertStringNotContainsString($needle, $haystack, $message = "") {
  1533. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsString', func_get_args()));
  1534. }
  1535. /**
  1536. * [!] Method is generated. Documentation taken from corresponding module.
  1537. *
  1538. * @param string $needle
  1539. * @param string $haystack
  1540. * @param string $message
  1541. * @see \Codeception\Module\AbstractAsserts::assertStringNotContainsStringIgnoringCase()
  1542. */
  1543. public function assertStringNotContainsStringIgnoringCase($needle, $haystack, $message = "") {
  1544. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsStringIgnoringCase', func_get_args()));
  1545. }
  1546. /**
  1547. * [!] Method is generated. Documentation taken from corresponding module.
  1548. *
  1549. * Asserts that the contents of a string is not equal to the contents of a file.
  1550. *
  1551. * @param string $expectedFile
  1552. * @param string $actualString
  1553. * @param string $message
  1554. * @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFile()
  1555. */
  1556. public function assertStringNotEqualsFile($expectedFile, $actualString, $message = "") {
  1557. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFile', func_get_args()));
  1558. }
  1559. /**
  1560. * [!] Method is generated. Documentation taken from corresponding module.
  1561. *
  1562. * Asserts that the contents of a string is not equal to the contents of a file (canonicalizing).
  1563. * @param string $expectedFile
  1564. * @param string $actualString
  1565. * @param string $message
  1566. * @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFileCanonicalizing()
  1567. */
  1568. public function assertStringNotEqualsFileCanonicalizing($expectedFile, $actualString, $message = "") {
  1569. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFileCanonicalizing', func_get_args()));
  1570. }
  1571. /**
  1572. * [!] Method is generated. Documentation taken from corresponding module.
  1573. *
  1574. * Asserts that the contents of a string is not equal to the contents of a file (ignoring case).
  1575. *
  1576. * @param string $expectedFile
  1577. * @param string $actualString
  1578. * @param string $message
  1579. * @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFileIgnoringCase()
  1580. */
  1581. public function assertStringNotEqualsFileIgnoringCase($expectedFile, $actualString, $message = "") {
  1582. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFileIgnoringCase', func_get_args()));
  1583. }
  1584. /**
  1585. * [!] Method is generated. Documentation taken from corresponding module.
  1586. *
  1587. * Asserts that a string does not match a given format string.
  1588. *
  1589. * @param string $format
  1590. * @param string $string
  1591. * @param string $message
  1592. * @see \Codeception\Module\AbstractAsserts::assertStringNotMatchesFormat()
  1593. */
  1594. public function assertStringNotMatchesFormat($format, $string, $message = "") {
  1595. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotMatchesFormat', func_get_args()));
  1596. }
  1597. /**
  1598. * [!] Method is generated. Documentation taken from corresponding module.
  1599. *
  1600. * Asserts that a string does not match a given format string.
  1601. *
  1602. * @param string $formatFile
  1603. * @param string $string
  1604. * @param string $message
  1605. * @see \Codeception\Module\AbstractAsserts::assertStringNotMatchesFormatFile()
  1606. */
  1607. public function assertStringNotMatchesFormatFile($formatFile, $string, $message = "") {
  1608. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotMatchesFormatFile', func_get_args()));
  1609. }
  1610. /**
  1611. * [!] Method is generated. Documentation taken from corresponding module.
  1612. *
  1613. * Asserts that a string starts not with a given prefix.
  1614. *
  1615. * @param string $prefix
  1616. * @param string $string
  1617. * @param string $message
  1618. * @see \Codeception\Module\AbstractAsserts::assertStringStartsNotWith()
  1619. */
  1620. public function assertStringStartsNotWith($prefix, $string, $message = "") {
  1621. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsNotWith', func_get_args()));
  1622. }
  1623. /**
  1624. * [!] Method is generated. Documentation taken from corresponding module.
  1625. *
  1626. * Asserts that a string starts with a given prefix.
  1627. *
  1628. * @param string $prefix
  1629. * @param string $string
  1630. * @param string $message
  1631. * @see \Codeception\Module\AbstractAsserts::assertStringStartsWith()
  1632. */
  1633. public function assertStringStartsWith($prefix, $string, $message = "") {
  1634. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsWith', func_get_args()));
  1635. }
  1636. /**
  1637. * [!] Method is generated. Documentation taken from corresponding module.
  1638. *
  1639. * Evaluates a PHPUnit\Framework\Constraint matcher object.
  1640. *
  1641. * @param $value
  1642. * @param Constraint $constraint
  1643. * @param string $message
  1644. * @see \Codeception\Module\AbstractAsserts::assertThat()
  1645. */
  1646. public function assertThat($value, $constraint, $message = "") {
  1647. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertThat', func_get_args()));
  1648. }
  1649. /**
  1650. * [!] Method is generated. Documentation taken from corresponding module.
  1651. *
  1652. * Asserts that a condition is true.
  1653. *
  1654. * @param $condition
  1655. * @param string $message
  1656. * @see \Codeception\Module\AbstractAsserts::assertTrue()
  1657. */
  1658. public function assertTrue($condition, $message = "") {
  1659. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args()));
  1660. }
  1661. /**
  1662. * [!] Method is generated. Documentation taken from corresponding module.
  1663. *
  1664. * Asserts that two XML files are equal.
  1665. *
  1666. * @param string $expectedFile
  1667. * @param string $actualFile
  1668. * @param string $message
  1669. * @see \Codeception\Module\AbstractAsserts::assertXmlFileEqualsXmlFile()
  1670. */
  1671. public function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = "") {
  1672. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlFileEqualsXmlFile', func_get_args()));
  1673. }
  1674. /**
  1675. * [!] Method is generated. Documentation taken from corresponding module.
  1676. *
  1677. * Asserts that two XML files are not equal.
  1678. *
  1679. * @param string $expectedFile
  1680. * @param string $actualFile
  1681. * @param string $message
  1682. * @see \Codeception\Module\AbstractAsserts::assertXmlFileNotEqualsXmlFile()
  1683. */
  1684. public function assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message = "") {
  1685. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlFileNotEqualsXmlFile', func_get_args()));
  1686. }
  1687. /**
  1688. * [!] Method is generated. Documentation taken from corresponding module.
  1689. *
  1690. * Asserts that two XML documents are equal.
  1691. *
  1692. * @param string $expectedFile
  1693. * @param DOMDocument|string $actualXml
  1694. * @param string $message
  1695. * @see \Codeception\Module\AbstractAsserts::assertXmlStringEqualsXmlFile()
  1696. */
  1697. public function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = "") {
  1698. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringEqualsXmlFile', func_get_args()));
  1699. }
  1700. /**
  1701. * [!] Method is generated. Documentation taken from corresponding module.
  1702. *
  1703. * Asserts that two XML documents are equal.
  1704. *
  1705. * @param DOMDocument|string $expectedXml
  1706. * @param DOMDocument|string $actualXml
  1707. * @param string $message
  1708. * @see \Codeception\Module\AbstractAsserts::assertXmlStringEqualsXmlString()
  1709. */
  1710. public function assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message = "") {
  1711. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringEqualsXmlString', func_get_args()));
  1712. }
  1713. /**
  1714. * [!] Method is generated. Documentation taken from corresponding module.
  1715. *
  1716. * Asserts that two XML documents are not equal.
  1717. *
  1718. * @param string $expectedFile
  1719. * @param DOMDocument|string $actualXml
  1720. * @param string $message
  1721. * @see \Codeception\Module\AbstractAsserts::assertXmlStringNotEqualsXmlFile()
  1722. */
  1723. public function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = "") {
  1724. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlFile', func_get_args()));
  1725. }
  1726. /**
  1727. * [!] Method is generated. Documentation taken from corresponding module.
  1728. *
  1729. * Asserts that two XML documents are not equal.
  1730. *
  1731. * @param DOMDocument|string $expectedXml
  1732. * @param DOMDocument|string $actualXml
  1733. * @param string $message
  1734. * @see \Codeception\Module\AbstractAsserts::assertXmlStringNotEqualsXmlString()
  1735. */
  1736. public function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = "") {
  1737. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlString', func_get_args()));
  1738. }
  1739. /**
  1740. * [!] Method is generated. Documentation taken from corresponding module.
  1741. *
  1742. * Fails a test with the given message.
  1743. *
  1744. * @param string $message
  1745. * @see \Codeception\Module\AbstractAsserts::fail()
  1746. */
  1747. public function fail($message = "") {
  1748. return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args()));
  1749. }
  1750. /**
  1751. * [!] Method is generated. Documentation taken from corresponding module.
  1752. *
  1753. * Mark the test as incomplete.
  1754. *
  1755. * @param string $message
  1756. * @see \Codeception\Module\AbstractAsserts::markTestIncomplete()
  1757. */
  1758. public function markTestIncomplete($message = "") {
  1759. return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestIncomplete', func_get_args()));
  1760. }
  1761. /**
  1762. * [!] Method is generated. Documentation taken from corresponding module.
  1763. *
  1764. * Mark the test as skipped.
  1765. *
  1766. * @param string $message
  1767. * @see \Codeception\Module\AbstractAsserts::markTestSkipped()
  1768. */
  1769. public function markTestSkipped($message = "") {
  1770. return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestSkipped', func_get_args()));
  1771. }
  1772. /**
  1773. * [!] Method is generated. Documentation taken from corresponding module.
  1774. *
  1775. * Creates and loads fixtures from a config.
  1776. * The signature is the same as for the `fixtures()` method of `yii\test\FixtureTrait`
  1777. *
  1778. * ```php
  1779. * <?php
  1780. * $I->haveFixtures([
  1781. * 'posts' => PostsFixture::className(),
  1782. * 'user' => [
  1783. * 'class' => UserFixture::className(),
  1784. * 'dataFile' => '@tests/_data/models/user.php',
  1785. * ],
  1786. * ]);
  1787. * ```
  1788. *
  1789. * Note: if you need to load fixtures before a test (probably before the
  1790. * cleanup transaction is started; `cleanup` option is `true` by default),
  1791. * you can specify the fixtures in the `_fixtures()` method of a test case
  1792. *
  1793. * ```php
  1794. * <?php
  1795. * // inside Cest file or Codeception\TestCase\Unit
  1796. * public function _fixtures(){
  1797. * return [
  1798. * 'user' => [
  1799. * 'class' => UserFixture::className(),
  1800. * 'dataFile' => codecept_data_dir() . 'user.php'
  1801. * ]
  1802. * ];
  1803. * }
  1804. * ```
  1805. * instead of calling `haveFixtures` in Cest `_before`
  1806. *
  1807. * @param $fixtures
  1808. * @part fixtures
  1809. * @see \Codeception\Module\Yii2::haveFixtures()
  1810. */
  1811. public function haveFixtures($fixtures) {
  1812. return $this->getScenario()->runStep(new \Codeception\Step\Action('haveFixtures', func_get_args()));
  1813. }
  1814. /**
  1815. * [!] Method is generated. Documentation taken from corresponding module.
  1816. *
  1817. * Returns all loaded fixtures.
  1818. * Array of fixture instances
  1819. *
  1820. * @part fixtures
  1821. * @return array
  1822. * @see \Codeception\Module\Yii2::grabFixtures()
  1823. */
  1824. public function grabFixtures() {
  1825. return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFixtures', func_get_args()));
  1826. }
  1827. /**
  1828. * [!] Method is generated. Documentation taken from corresponding module.
  1829. *
  1830. * Gets a fixture by name.
  1831. * Returns a Fixture instance. If a fixture is an instance of
  1832. * `\yii\test\BaseActiveFixture` a second parameter can be used to return a
  1833. * specific model:
  1834. *
  1835. * ```php
  1836. * <?php
  1837. * $I->haveFixtures(['users' => UserFixture::className()]);
  1838. *
  1839. * $users = $I->grabFixture('users');
  1840. *
  1841. * // get first user by key, if a fixture is an instance of ActiveFixture
  1842. * $user = $I->grabFixture('users', 'user1');
  1843. * ```
  1844. *
  1845. * @param $name
  1846. * @return mixed
  1847. * @throws \Codeception\Exception\ModuleException if the fixture is not found
  1848. * @part fixtures
  1849. * @see \Codeception\Module\Yii2::grabFixture()
  1850. */
  1851. public function grabFixture($name, $index = NULL) {
  1852. return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFixture', func_get_args()));
  1853. }
  1854. /**
  1855. * [!] Method is generated. Documentation taken from corresponding module.
  1856. *
  1857. * Inserts a record into the database.
  1858. *
  1859. * ``` php
  1860. * <?php
  1861. * $user_id = $I->haveRecord('app\models\User', array('name' => 'Davert'));
  1862. * ?>
  1863. * ```
  1864. *
  1865. * @param $model
  1866. * @param array $attributes
  1867. * @return mixed
  1868. * @part orm
  1869. * @see \Codeception\Module\Yii2::haveRecord()
  1870. */
  1871. public function haveRecord($model, $attributes = []) {
  1872. return $this->getScenario()->runStep(new \Codeception\Step\Action('haveRecord', func_get_args()));
  1873. }
  1874. /**
  1875. * [!] Method is generated. Documentation taken from corresponding module.
  1876. *
  1877. * Checks that a record exists in the database.
  1878. *
  1879. * ``` php
  1880. * $I->seeRecord('app\models\User', array('name' => 'davert'));
  1881. * ```
  1882. *
  1883. * @param $model
  1884. * @param array $attributes
  1885. * @part orm
  1886. * @see \Codeception\Module\Yii2::seeRecord()
  1887. */
  1888. public function seeRecord($model, $attributes = []) {
  1889. return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeRecord', func_get_args()));
  1890. }
  1891. /**
  1892. * [!] Method is generated. Documentation taken from corresponding module.
  1893. *
  1894. * [!] Conditional Assertion: Test won't be stopped on fail
  1895. * Checks that a record exists in the database.
  1896. *
  1897. * ``` php
  1898. * $I->seeRecord('app\models\User', array('name' => 'davert'));
  1899. * ```
  1900. *
  1901. * @param $model
  1902. * @param array $attributes
  1903. * @part orm
  1904. * @see \Codeception\Module\Yii2::seeRecord()
  1905. */
  1906. public function canSeeRecord($model, $attributes = []) {
  1907. return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeRecord', func_get_args()));
  1908. }
  1909. /**
  1910. * [!] Method is generated. Documentation taken from corresponding module.
  1911. *
  1912. * Checks that a record does not exist in the database.
  1913. *
  1914. * ``` php
  1915. * $I->dontSeeRecord('app\models\User', array('name' => 'davert'));
  1916. * ```
  1917. *
  1918. * @param $model
  1919. * @param array $attributes
  1920. * @part orm
  1921. * @see \Codeception\Module\Yii2::dontSeeRecord()
  1922. */
  1923. public function dontSeeRecord($model, $attributes = []) {
  1924. return $this->getScenario()->runStep(new \Codeception\Step\Action('dontSeeRecord', func_get_args()));
  1925. }
  1926. /**
  1927. * [!] Method is generated. Documentation taken from corresponding module.
  1928. *
  1929. * [!] Conditional Assertion: Test won't be stopped on fail
  1930. * Checks that a record does not exist in the database.
  1931. *
  1932. * ``` php
  1933. * $I->dontSeeRecord('app\models\User', array('name' => 'davert'));
  1934. * ```
  1935. *
  1936. * @param $model
  1937. * @param array $attributes
  1938. * @part orm
  1939. * @see \Codeception\Module\Yii2::dontSeeRecord()
  1940. */
  1941. public function cantSeeRecord($model, $attributes = []) {
  1942. return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeRecord', func_get_args()));
  1943. }
  1944. /**
  1945. * [!] Method is generated. Documentation taken from corresponding module.
  1946. *
  1947. * Retrieves a record from the database
  1948. *
  1949. * ``` php
  1950. * $category = $I->grabRecord('app\models\User', array('name' => 'davert'));
  1951. * ```
  1952. *
  1953. * @param $model
  1954. * @param array $attributes
  1955. * @return mixed
  1956. * @part orm
  1957. * @see \Codeception\Module\Yii2::grabRecord()
  1958. */
  1959. public function grabRecord($model, $attributes = []) {
  1960. return $this->getScenario()->runStep(new \Codeception\Step\Action('grabRecord', func_get_args()));
  1961. }
  1962. /**
  1963. * [!] Method is generated. Documentation taken from corresponding module.
  1964. *
  1965. * Checks that an email is sent.
  1966. *
  1967. * ```php
  1968. * <?php
  1969. * // check that at least 1 email was sent
  1970. * $I->seeEmailIsSent();
  1971. *
  1972. * // check that only 3 emails were sent
  1973. * $I->seeEmailIsSent(3);
  1974. * ```
  1975. *
  1976. * @param int $num
  1977. * @throws \Codeception\Exception\ModuleException
  1978. * @part email
  1979. * @see \Codeception\Module\Yii2::seeEmailIsSent()
  1980. */
  1981. public function seeEmailIsSent($num = NULL) {
  1982. return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeEmailIsSent', func_get_args()));
  1983. }
  1984. /**
  1985. * [!] Method is generated. Documentation taken from corresponding module.
  1986. *
  1987. * [!] Conditional Assertion: Test won't be stopped on fail
  1988. * Checks that an email is sent.
  1989. *
  1990. * ```php
  1991. * <?php
  1992. * // check that at least 1 email was sent
  1993. * $I->seeEmailIsSent();
  1994. *
  1995. * // check that only 3 emails were sent
  1996. * $I->seeEmailIsSent(3);
  1997. * ```
  1998. *
  1999. * @param int $num
  2000. * @throws \Codeception\Exception\ModuleException
  2001. * @part email
  2002. * @see \Codeception\Module\Yii2::seeEmailIsSent()
  2003. */
  2004. public function canSeeEmailIsSent($num = NULL) {
  2005. return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeEmailIsSent', func_get_args()));
  2006. }
  2007. /**
  2008. * [!] Method is generated. Documentation taken from corresponding module.
  2009. *
  2010. * Checks that no email was sent
  2011. *
  2012. * @part email
  2013. * @see \Codeception\Module\Yii2::dontSeeEmailIsSent()
  2014. */
  2015. public function dontSeeEmailIsSent() {
  2016. return $this->getScenario()->runStep(new \Codeception\Step\Action('dontSeeEmailIsSent', func_get_args()));
  2017. }
  2018. /**
  2019. * [!] Method is generated. Documentation taken from corresponding module.
  2020. *
  2021. * [!] Conditional Assertion: Test won't be stopped on fail
  2022. * Checks that no email was sent
  2023. *
  2024. * @part email
  2025. * @see \Codeception\Module\Yii2::dontSeeEmailIsSent()
  2026. */
  2027. public function cantSeeEmailIsSent() {
  2028. return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeEmailIsSent', func_get_args()));
  2029. }
  2030. /**
  2031. * [!] Method is generated. Documentation taken from corresponding module.
  2032. *
  2033. * Returns array of all sent email messages.
  2034. * Each message implements the `yii\mail\MessageInterface` interface.
  2035. * Useful to perform additional checks using the `Asserts` module:
  2036. *
  2037. * ```php
  2038. * <?php
  2039. * $I->seeEmailIsSent();
  2040. * $messages = $I->grabSentEmails();
  2041. * $I->assertEquals('admin@site,com', $messages[0]->getTo());
  2042. * ```
  2043. *
  2044. * @part email
  2045. * @return array
  2046. * @throws \Codeception\Exception\ModuleException
  2047. * @see \Codeception\Module\Yii2::grabSentEmails()
  2048. */
  2049. public function grabSentEmails() {
  2050. return $this->getScenario()->runStep(new \Codeception\Step\Action('grabSentEmails', func_get_args()));
  2051. }
  2052. /**
  2053. * [!] Method is generated. Documentation taken from corresponding module.
  2054. *
  2055. * Returns the last sent email:
  2056. *
  2057. * ```php
  2058. * <?php
  2059. * $I->seeEmailIsSent();
  2060. * $message = $I->grabLastSentEmail();
  2061. * $I->assertEquals('admin@site,com', $message->getTo());
  2062. * ```
  2063. * @part email
  2064. * @see \Codeception\Module\Yii2::grabLastSentEmail()
  2065. */
  2066. public function grabLastSentEmail() {
  2067. return $this->getScenario()->runStep(new \Codeception\Step\Action('grabLastSentEmail', func_get_args()));
  2068. }
  2069. }