/protected/vendor/dmstr/yii2-helpers/tests/_support/_generated/UnitTesterActions.php

https://gitlab.com/I-NOZex/quiz · PHP · 344 lines · 77 code · 49 blank · 218 comment · 0 complexity · a4f2f94b71f6742082a38aae89078c5b MD5 · raw file

  1. <?php //[STAMP] 54aaa78e83f8952fb445f45fe4703247
  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. use Codeception\Module\Asserts;
  7. use Helper\Unit;
  8. trait UnitTesterActions
  9. {
  10. /**
  11. * @return \Codeception\Scenario
  12. */
  13. abstract protected function getScenario();
  14. /**
  15. * [!] Method is generated. Documentation taken from corresponding module.
  16. *
  17. * Checks that two variables are equal.
  18. *
  19. * @param $expected
  20. * @param $actual
  21. * @param string $message
  22. * @see \Codeception\Module\Asserts::assertEquals()
  23. */
  24. public function assertEquals($expected, $actual, $message = null) {
  25. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args()));
  26. }
  27. /**
  28. * [!] Method is generated. Documentation taken from corresponding module.
  29. *
  30. * Checks that two variables are not equal
  31. *
  32. * @param $expected
  33. * @param $actual
  34. * @param string $message
  35. * @see \Codeception\Module\Asserts::assertNotEquals()
  36. */
  37. public function assertNotEquals($expected, $actual, $message = null) {
  38. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args()));
  39. }
  40. /**
  41. * [!] Method is generated. Documentation taken from corresponding module.
  42. *
  43. * Checks that two variables are same
  44. *
  45. * @param $expected
  46. * @param $actual
  47. * @param string $message
  48. * @see \Codeception\Module\Asserts::assertSame()
  49. */
  50. public function assertSame($expected, $actual, $message = null) {
  51. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args()));
  52. }
  53. /**
  54. * [!] Method is generated. Documentation taken from corresponding module.
  55. *
  56. * Checks that two variables are not same
  57. *
  58. * @param $expected
  59. * @param $actual
  60. * @param string $message
  61. * @see \Codeception\Module\Asserts::assertNotSame()
  62. */
  63. public function assertNotSame($expected, $actual, $message = null) {
  64. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args()));
  65. }
  66. /**
  67. * [!] Method is generated. Documentation taken from corresponding module.
  68. *
  69. * Checks that actual is greater than expected
  70. *
  71. * @param $expected
  72. * @param $actual
  73. * @param string $message
  74. * @see \Codeception\Module\Asserts::assertGreaterThan()
  75. */
  76. public function assertGreaterThan($expected, $actual, $message = null) {
  77. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args()));
  78. }
  79. /**
  80. * [!] Method is generated. Documentation taken from corresponding module.
  81. *
  82. * @deprecated
  83. * @see \Codeception\Module\Asserts::assertGreaterThen()
  84. */
  85. public function assertGreaterThen($expected, $actual, $message = null) {
  86. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThen', func_get_args()));
  87. }
  88. /**
  89. * [!] Method is generated. Documentation taken from corresponding module.
  90. *
  91. * Checks that actual is greater or equal than expected
  92. *
  93. * @param $expected
  94. * @param $actual
  95. * @param string $message
  96. * @see \Codeception\Module\Asserts::assertGreaterThanOrEqual()
  97. */
  98. public function assertGreaterThanOrEqual($expected, $actual, $message = null) {
  99. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args()));
  100. }
  101. /**
  102. * [!] Method is generated. Documentation taken from corresponding module.
  103. *
  104. * @deprecated
  105. * @see \Codeception\Module\Asserts::assertGreaterThenOrEqual()
  106. */
  107. public function assertGreaterThenOrEqual($expected, $actual, $message = null) {
  108. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThenOrEqual', func_get_args()));
  109. }
  110. /**
  111. * [!] Method is generated. Documentation taken from corresponding module.
  112. *
  113. * Checks that actual is less than expected
  114. *
  115. * @param $expected
  116. * @param $actual
  117. * @param string $message
  118. * @see \Codeception\Module\Asserts::assertLessThan()
  119. */
  120. public function assertLessThan($expected, $actual, $message = null) {
  121. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args()));
  122. }
  123. /**
  124. * [!] Method is generated. Documentation taken from corresponding module.
  125. *
  126. * Checks that actual is less or equal than expected
  127. *
  128. * @param $expected
  129. * @param $actual
  130. * @param string $message
  131. * @see \Codeception\Module\Asserts::assertLessThanOrEqual()
  132. */
  133. public function assertLessThanOrEqual($expected, $actual, $message = null) {
  134. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args()));
  135. }
  136. /**
  137. * [!] Method is generated. Documentation taken from corresponding module.
  138. *
  139. * Checks that haystack contains needle
  140. *
  141. * @param $needle
  142. * @param $haystack
  143. * @param string $message
  144. * @see \Codeception\Module\Asserts::assertContains()
  145. */
  146. public function assertContains($needle, $haystack, $message = null) {
  147. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args()));
  148. }
  149. /**
  150. * [!] Method is generated. Documentation taken from corresponding module.
  151. *
  152. * Checks that haystack doesn't contain needle.
  153. *
  154. * @param $needle
  155. * @param $haystack
  156. * @param string $message
  157. * @see \Codeception\Module\Asserts::assertNotContains()
  158. */
  159. public function assertNotContains($needle, $haystack, $message = null) {
  160. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args()));
  161. }
  162. /**
  163. * [!] Method is generated. Documentation taken from corresponding module.
  164. *
  165. * Checks that string match with pattern
  166. *
  167. * @param string $pattern
  168. * @param string $string
  169. * @param string $message
  170. * @see \Codeception\Module\Asserts::assertRegExp()
  171. */
  172. public function assertRegExp($pattern, $string, $message = null) {
  173. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args()));
  174. }
  175. /**
  176. * [!] Method is generated. Documentation taken from corresponding module.
  177. *
  178. * Checks that string not match with pattern
  179. *
  180. * @param string $pattern
  181. * @param string $string
  182. * @param string $message
  183. * @see \Codeception\Module\Asserts::assertNotRegExp()
  184. */
  185. public function assertNotRegExp($pattern, $string, $message = null) {
  186. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args()));
  187. }
  188. /**
  189. * [!] Method is generated. Documentation taken from corresponding module.
  190. *
  191. * Checks that variable is empty.
  192. *
  193. * @param $actual
  194. * @param string $message
  195. * @see \Codeception\Module\Asserts::assertEmpty()
  196. */
  197. public function assertEmpty($actual, $message = null) {
  198. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args()));
  199. }
  200. /**
  201. * [!] Method is generated. Documentation taken from corresponding module.
  202. *
  203. * Checks that variable is not empty.
  204. *
  205. * @param $actual
  206. * @param string $message
  207. * @see \Codeception\Module\Asserts::assertNotEmpty()
  208. */
  209. public function assertNotEmpty($actual, $message = null) {
  210. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args()));
  211. }
  212. /**
  213. * [!] Method is generated. Documentation taken from corresponding module.
  214. *
  215. * Checks that variable is NULL
  216. *
  217. * @param $actual
  218. * @param string $message
  219. * @see \Codeception\Module\Asserts::assertNull()
  220. */
  221. public function assertNull($actual, $message = null) {
  222. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args()));
  223. }
  224. /**
  225. * [!] Method is generated. Documentation taken from corresponding module.
  226. *
  227. * Checks that variable is not NULL
  228. *
  229. * @param $actual
  230. * @param string $message
  231. * @see \Codeception\Module\Asserts::assertNotNull()
  232. */
  233. public function assertNotNull($actual, $message = null) {
  234. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args()));
  235. }
  236. /**
  237. * [!] Method is generated. Documentation taken from corresponding module.
  238. *
  239. * Checks that condition is positive.
  240. *
  241. * @param $condition
  242. * @param string $message
  243. * @see \Codeception\Module\Asserts::assertTrue()
  244. */
  245. public function assertTrue($condition, $message = null) {
  246. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args()));
  247. }
  248. /**
  249. * [!] Method is generated. Documentation taken from corresponding module.
  250. *
  251. * Checks that condition is negative.
  252. *
  253. * @param $condition
  254. * @param string $message
  255. * @see \Codeception\Module\Asserts::assertFalse()
  256. */
  257. public function assertFalse($condition, $message = null) {
  258. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args()));
  259. }
  260. /**
  261. * [!] Method is generated. Documentation taken from corresponding module.
  262. *
  263. * Checks if file exists
  264. *
  265. * @param string $filename
  266. * @param string $message
  267. * @see \Codeception\Module\Asserts::assertFileExists()
  268. */
  269. public function assertFileExists($filename, $message = null) {
  270. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args()));
  271. }
  272. /**
  273. * [!] Method is generated. Documentation taken from corresponding module.
  274. *
  275. * Checks if file doesn't exist
  276. *
  277. * @param string $filename
  278. * @param string $message
  279. * @see \Codeception\Module\Asserts::assertFileNotExists()
  280. */
  281. public function assertFileNotExists($filename, $message = null) {
  282. return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args()));
  283. }
  284. /**
  285. * [!] Method is generated. Documentation taken from corresponding module.
  286. *
  287. * Fails the test with message.
  288. *
  289. * @param $message
  290. * @see \Codeception\Module\Asserts::fail()
  291. */
  292. public function fail($message) {
  293. return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args()));
  294. }
  295. }