aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormlunzena <lunzenauer@elan-ev.de>2021-08-18 10:19:43 +0200
committermlunzena <lunzenauer@elan-ev.de>2021-08-18 10:22:01 +0200
commit607b1e07f0768227066e528a3792eaedaec941aa (patch)
tree94dbaaccd2e39f7064b0248c74eff1292b12abd0 /tests
parentcf997f4c7d1fc0474fea242c6d4e9206a0bc3521 (diff)
update Codeception and phpunit, refs #81
Diffstat (limited to 'tests')
-rw-r--r--tests/_support/Helper/StudipDb.php2
-rw-r--r--tests/_support/_generated/FunctionalTesterActions.php2
-rw-r--r--tests/_support/_generated/JsonapiTesterActions.php1692
-rw-r--r--tests/_support/_generated/UnitTesterActions.php278
-rw-r--r--tests/jsonapi/UserEventsIcalTest.php4
-rw-r--r--tests/jsonapi/WikiCreateTest.php1
-rw-r--r--tests/jsonapi/WikiIndexTest.php5
-rw-r--r--tests/jsonapi/WikiShowTest.php2
-rw-r--r--tests/jsonapi/WikiUpdateTest.php3
-rw-r--r--tests/unit/_bootstrap.php5
-rw-r--r--tests/unit/lib/CalendarcolumnClassTest.php12
-rw-r--r--tests/unit/lib/CalendarviewClassTest.php10
-rw-r--r--tests/unit/lib/VisualTest.php4
-rw-r--r--tests/unit/lib/classes/AssetsClassTest.php12
-rw-r--r--tests/unit/lib/classes/AvatarClassTest.php8
-rw-r--r--tests/unit/lib/classes/CronjobScheduleTest.php4
-rw-r--r--tests/unit/lib/classes/CsrfProtectionTest.php10
-rw-r--r--tests/unit/lib/classes/IconClassTest.php4
-rw-r--r--tests/unit/lib/classes/MigrationTest.php4
-rw-r--r--tests/unit/lib/classes/NavigationTest.php2
-rw-r--r--tests/unit/lib/classes/NotificationCenterTest.php4
-rw-r--r--tests/unit/lib/classes/ObjectBuilderTest.php17
-rw-r--r--tests/unit/lib/classes/PluginRepositoryTest.php2
-rw-r--r--tests/unit/lib/classes/RequestTest.php6
-rw-r--r--tests/unit/lib/classes/SimpleCollectionTest.php4
-rw-r--r--tests/unit/lib/classes/SimpleOrMapNodbTest.php8
-rw-r--r--tests/unit/lib/classes/StringManipulationTest.php4
-rw-r--r--tests/unit/lib/classes/StudipCachedArrayTest.php2
-rw-r--r--tests/unit/lib/classes/StudipFileloaderTest.php4
-rw-r--r--tests/unit/lib/classes/StudipFormatTest.php4
-rw-r--r--tests/unit/lib/classes/StudipPdoTest.php39
-rw-r--r--tests/unit/lib/classes/StudipVersionTest.php4
-rw-r--r--tests/unit/lib/classes/TextFormatTest.php2
-rw-r--r--tests/unit/lib/classes/UpdateinformationClassTest.php10
-rw-r--r--tests/unit/lib/classes/UrlHelperTest.php2
-rw-r--r--tests/unit/lib/classes/UserDomainTest.php4
-rw-r--r--tests/unit/lib/classes/htmlpurifier/HtmlpurifierInjectorClassifylinksTest.php4
37 files changed, 1663 insertions, 521 deletions
diff --git a/tests/_support/Helper/StudipDb.php b/tests/_support/Helper/StudipDb.php
index 8d7f263..90ad24c 100644
--- a/tests/_support/Helper/StudipDb.php
+++ b/tests/_support/Helper/StudipDb.php
@@ -5,7 +5,7 @@ namespace Helper;
use Codeception\Exception\ModuleConfigException;
use Codeception\Exception\ModuleException;
-require_once 'StudipPDO.php';
+require_once('lib/classes/StudipPDO.class.php');
class StudipDb extends \Codeception\Module
{
diff --git a/tests/_support/_generated/FunctionalTesterActions.php b/tests/_support/_generated/FunctionalTesterActions.php
index 8257a4e..b10769a 100644
--- a/tests/_support/_generated/FunctionalTesterActions.php
+++ b/tests/_support/_generated/FunctionalTesterActions.php
@@ -1,4 +1,4 @@
-<?php //[STAMP] 6e8eab5089e8fcc600b23f9a78b89b9c
+<?php //[STAMP] 9862bb9e5ebf65fc43909feeee411c2a
namespace _generated;
// This class was automatically generated by build task
diff --git a/tests/_support/_generated/JsonapiTesterActions.php b/tests/_support/_generated/JsonapiTesterActions.php
index cb4f492..e4f4bde 100644
--- a/tests/_support/_generated/JsonapiTesterActions.php
+++ b/tests/_support/_generated/JsonapiTesterActions.php
@@ -1,4 +1,4 @@
-<?php //[STAMP] 686e44487f85339db9d6c30356fecf96
+<?php //[STAMP] bc9d12565d6304b308d375b50b9e8556
namespace _generated;
// This class was automatically generated by build task
@@ -39,8 +39,8 @@ trait JsonapiTesterActions
* ```
*
* @deprecated Use expectThrowable() instead
- * @param $exception string or \Exception
- * @param $callback
+ * @param \Exception|string $exception
+ * @param callable $callback
* @see \Codeception\Module\Asserts::expectException()
*/
public function expectException($exception, $callback) {
@@ -73,8 +73,8 @@ trait JsonapiTesterActions
* });
* ```
*
- * @param $throwable string or \Throwable
- * @param $callback
+ * @param \Throwable|string $throwable
+ * @param callable $callback
* @see \Codeception\Module\Asserts::expectThrowable()
*/
public function expectThrowable($throwable, $callback) {
@@ -85,136 +85,207 @@ trait JsonapiTesterActions
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that two variables are equal.
+ * Asserts that a file does not exist.
*
- * @param $expected
- * @param $actual
+ * @param string $filename
* @param string $message
- * @param float $delta
- * @see \Codeception\Module\Asserts::assertEquals()
+ * @see \Codeception\Module\AbstractAsserts::assertFileNotExists()
*/
- public function assertEquals($expected, $actual, $message = null, $delta = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args()));
+ public function assertFileNotExists($filename, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that two variables are not equal
+ * Asserts that a value is greater than or equal to another value.
*
- * @param $expected
- * @param $actual
+ * @param $expected
+ * @param $actual
* @param string $message
- * @param float $delta
- * @see \Codeception\Module\Asserts::assertNotEquals()
+ * @see \Codeception\Module\AbstractAsserts::assertGreaterOrEquals()
*/
- public function assertNotEquals($expected, $actual, $message = null, $delta = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args()));
+ public function assertGreaterOrEquals($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterOrEquals', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that two variables are same
+ * Asserts that a variable is empty.
*
- * @param $expected
- * @param $actual
+ * @param $actual
* @param string $message
- * @see \Codeception\Module\Asserts::assertSame()
+ * @see \Codeception\Module\AbstractAsserts::assertIsEmpty()
*/
- public function assertSame($expected, $actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args()));
+ public function assertIsEmpty($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsEmpty', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that two variables are not same
+ * Asserts that a value is smaller than or equal to another value.
*
- * @param $expected
- * @param $actual
+ * @param $expected
+ * @param $actual
* @param string $message
- * @see \Codeception\Module\Asserts::assertNotSame()
+ * @see \Codeception\Module\AbstractAsserts::assertLessOrEquals()
*/
- public function assertNotSame($expected, $actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args()));
+ public function assertLessOrEquals($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessOrEquals', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that actual is greater than expected
+ * Asserts that a string does not match a given regular expression.
*
- * @param $expected
- * @param $actual
+ * @param string $pattern
+ * @param string $string
* @param string $message
- * @see \Codeception\Module\Asserts::assertGreaterThan()
+ * @see \Codeception\Module\AbstractAsserts::assertNotRegExp()
*/
- public function assertGreaterThan($expected, $actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args()));
+ public function assertNotRegExp($pattern, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that actual is greater or equal than expected
+ * Asserts that a string matches a given regular expression.
*
- * @param $expected
- * @param $actual
+ * @param string $pattern
+ * @param string $string
* @param string $message
- * @see \Codeception\Module\Asserts::assertGreaterThanOrEqual()
+ * @see \Codeception\Module\AbstractAsserts::assertRegExp()
*/
- public function assertGreaterThanOrEqual($expected, $actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args()));
+ public function assertRegExp($pattern, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that actual is less than expected
+ * Evaluates a PHPUnit\Framework\Constraint matcher object.
*
- * @param $expected
- * @param $actual
+ * @param $value
+ * @param Constraint $constraint
* @param string $message
- * @see \Codeception\Module\Asserts::assertLessThan()
+ * @see \Codeception\Module\AbstractAsserts::assertThatItsNot()
*/
- public function assertLessThan($expected, $actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args()));
+ public function assertThatItsNot($value, $constraint, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertThatItsNot', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that actual is less or equal than expected
+ * Asserts that an array has a specified key.
*
- * @param $expected
- * @param $actual
+ * @param int|string $key
+ * @param array|ArrayAccess $array
* @param string $message
- * @see \Codeception\Module\Asserts::assertLessThanOrEqual()
+ * @see \Codeception\Module\AbstractAsserts::assertArrayHasKey()
*/
- public function assertLessThanOrEqual($expected, $actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args()));
+ public function assertArrayHasKey($key, $array, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayHasKey', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that an array does not have a specified key.
+ *
+ * @param int|string $key
+ * @param array|ArrayAccess $array
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertArrayNotHasKey()
+ */
+ public function assertArrayNotHasKey($key, $array, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayNotHasKey', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a class has a specified attribute.
+ *
+ * @param string $attributeName
+ * @param string $className
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertClassHasAttribute()
+ */
+ public function assertClassHasAttribute($attributeName, $className, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassHasAttribute', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a class has a specified static attribute.
+ *
+ * @param string $attributeName
+ * @param string $className
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertClassHasStaticAttribute()
+ */
+ public function assertClassHasStaticAttribute($attributeName, $className, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassHasStaticAttribute', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that haystack contains needle
+ * Asserts that a class does not have a specified attribute.
*
- * @param $needle
- * @param $haystack
+ * @param string $attributeName
+ * @param string $className
* @param string $message
- * @see \Codeception\Module\Asserts::assertContains()
+ * @see \Codeception\Module\AbstractAsserts::assertClassNotHasAttribute()
*/
- public function assertContains($needle, $haystack, $message = null) {
+ public function assertClassNotHasAttribute($attributeName, $className, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassNotHasAttribute', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a class does not have a specified static attribute.
+ *
+ * @param string $attributeName
+ * @param string $className
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertClassNotHasStaticAttribute()
+ */
+ public function assertClassNotHasStaticAttribute($attributeName, $className, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassNotHasStaticAttribute', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a haystack contains a needle.
+ *
+ * @param $needle
+ * @param $haystack
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertContains()
+ */
+ public function assertContains($needle, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args()));
}
@@ -222,88 +293,171 @@ trait JsonapiTesterActions
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that haystack doesn't contain needle.
+ * @param $needle
+ * @param $haystack
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertContainsEquals()
+ */
+ public function assertContainsEquals($needle, $haystack, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsEquals', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a haystack contains only values of a given type.
*
- * @param $needle
- * @param $haystack
+ * @param string $type
+ * @param $haystack
+ * @param bool|null $isNativeType
* @param string $message
- * @see \Codeception\Module\Asserts::assertNotContains()
+ * @see \Codeception\Module\AbstractAsserts::assertContainsOnly()
*/
- public function assertNotContains($needle, $haystack, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args()));
+ public function assertContainsOnly($type, $haystack, $isNativeType = NULL, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsOnly', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that string match with pattern
+ * Asserts that a haystack contains only instances of a given class name.
*
- * @param string $pattern
- * @param string $string
+ * @param string $className
+ * @param $haystack
* @param string $message
- * @see \Codeception\Module\Asserts::assertRegExp()
+ * @see \Codeception\Module\AbstractAsserts::assertContainsOnlyInstancesOf()
*/
- public function assertRegExp($pattern, $string, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args()));
+ public function assertContainsOnlyInstancesOf($className, $haystack, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsOnlyInstancesOf', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that string not match with pattern
+ * Asserts the number of elements of an array, Countable or Traversable.
*
- * @param string $pattern
- * @param string $string
+ * @param int $expectedCount
+ * @param Countable|iterable $haystack
* @param string $message
- * @see \Codeception\Module\Asserts::assertNotRegExp()
+ * @see \Codeception\Module\AbstractAsserts::assertCount()
*/
- public function assertNotRegExp($pattern, $string, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args()));
+ public function assertCount($expectedCount, $haystack, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertCount', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that a string starts with the given prefix.
+ * Asserts that a directory does not exist.
*
- * @param string $prefix
- * @param string $string
+ * @param string $directory
* @param string $message
- * @see \Codeception\Module\Asserts::assertStringStartsWith()
+ * @see \Codeception\Module\AbstractAsserts::assertDirectoryDoesNotExist()
*/
- public function assertStringStartsWith($prefix, $string, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsWith', func_get_args()));
+ public function assertDirectoryDoesNotExist($directory, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryDoesNotExist', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that a string doesn't start with the given prefix.
+ * Asserts that a directory exists.
*
- * @param string $prefix
+ * @param string $directory
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertDirectoryExists()
+ */
+ public function assertDirectoryExists($directory, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryExists', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a directory exists and is not readable.
+ *
+ * @param string $directory
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsNotReadable()
+ */
+ public function assertDirectoryIsNotReadable($directory, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsNotReadable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a directory exists and is not writable.
+ *
+ * @param string $directory
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsNotWritable()
+ */
+ public function assertDirectoryIsNotWritable($directory, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsNotWritable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a directory exists and is readable.
+ *
+ * @param string $directory
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsReadable()
+ */
+ public function assertDirectoryIsReadable($directory, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsReadable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a directory exists and is writable.
+ *
+ * @param string $directory
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertDirectoryIsWritable()
+ */
+ public function assertDirectoryIsWritable($directory, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsWritable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a string does not match a given regular expression.
+ *
+ * @param string $pattern
* @param string $string
* @param string $message
- * @see \Codeception\Module\Asserts::assertStringStartsNotWith()
+ * @see \Codeception\Module\AbstractAsserts::assertDoesNotMatchRegularExpression()
*/
- public function assertStringStartsNotWith($prefix, $string, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsNotWith', func_get_args()));
+ public function assertDoesNotMatchRegularExpression($pattern, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDoesNotMatchRegularExpression', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that variable is empty.
+ * Asserts that a variable is empty.
*
- * @param $actual
+ * @param $actual
* @param string $message
- * @see \Codeception\Module\Asserts::assertEmpty()
+ * @see \Codeception\Module\AbstractAsserts::assertEmpty()
*/
- public function assertEmpty($actual, $message = null) {
+ public function assertEmpty($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args()));
}
@@ -311,111 +465,147 @@ trait JsonapiTesterActions
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that variable is not empty.
+ * Asserts that two variables are equal.
*
- * @param $actual
+ * @param $expected
+ * @param $actual
* @param string $message
- * @see \Codeception\Module\Asserts::assertNotEmpty()
+ * @see \Codeception\Module\AbstractAsserts::assertEquals()
*/
- public function assertNotEmpty($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args()));
+ public function assertEquals($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that variable is NULL
+ * Asserts that two variables are equal (canonicalizing).
*
- * @param $actual
+ * @param $expected
+ * @param $actual
* @param string $message
- * @see \Codeception\Module\Asserts::assertNull()
+ * @see \Codeception\Module\AbstractAsserts::assertEqualsCanonicalizing()
*/
- public function assertNull($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args()));
+ public function assertEqualsCanonicalizing($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsCanonicalizing', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that variable is not NULL
+ * Asserts that two variables are equal (ignoring case).
*
- * @param $actual
+ * @param $expected
+ * @param $actual
* @param string $message
- * @see \Codeception\Module\Asserts::assertNotNull()
+ * @see \Codeception\Module\AbstractAsserts::assertEqualsIgnoringCase()
*/
- public function assertNotNull($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args()));
+ public function assertEqualsIgnoringCase($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsIgnoringCase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that condition is positive.
+ * Asserts that two variables are equal (with delta).
*
- * @param $condition
+ * @param $expected
+ * @param $actual
+ * @param float $delta
* @param string $message
- * @see \Codeception\Module\Asserts::assertTrue()
+ * @see \Codeception\Module\AbstractAsserts::assertEqualsWithDelta()
*/
- public function assertTrue($condition, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args()));
+ public function assertEqualsWithDelta($expected, $actual, $delta, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsWithDelta', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that the condition is NOT true (everything but true)
+ * Asserts that a condition is false.
*
- * @param $condition
+ * @param $condition
* @param string $message
- * @see \Codeception\Module\Asserts::assertNotTrue()
+ * @see \Codeception\Module\AbstractAsserts::assertFalse()
*/
- public function assertNotTrue($condition, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotTrue', func_get_args()));
+ public function assertFalse($condition, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that condition is negative.
+ * Asserts that a file does not exist.
*
- * @param $condition
+ * @param string $filename
* @param string $message
- * @see \Codeception\Module\Asserts::assertFalse()
+ * @see \Codeception\Module\AbstractAsserts::assertFileDoesNotExist()
*/
- public function assertFalse($condition, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args()));
+ public function assertFileDoesNotExist($filename, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileDoesNotExist', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks that the condition is NOT false (everything but false)
+ * Asserts that the contents of one file is equal to the contents of another file.
*
- * @param $condition
+ * @param string $expected
+ * @param string $actual
* @param string $message
- * @see \Codeception\Module\Asserts::assertNotFalse()
+ * @see \Codeception\Module\AbstractAsserts::assertFileEquals()
*/
- public function assertNotFalse($condition, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotFalse', func_get_args()));
+ public function assertFileEquals($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEquals', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that the contents of one file is equal to the contents of another file (canonicalizing).
+ *
+ * @param $expected
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertFileEqualsCanonicalizing()
+ */
+ public function assertFileEqualsCanonicalizing($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEqualsCanonicalizing', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that the contents of one file is equal to the contents of another file (ignoring case).
+ *
+ * @param $expected
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertFileEqualsIgnoringCase()
+ */
+ public function assertFileEqualsIgnoringCase($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEqualsIgnoringCase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks if file exists
+ * Asserts that a file exists.
*
* @param string $filename
* @param string $message
- * @see \Codeception\Module\Asserts::assertFileExists()
+ * @see \Codeception\Module\AbstractAsserts::assertFileExists()
*/
- public function assertFileExists($filename, $message = null) {
+ public function assertFileExists($filename, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args()));
}
@@ -423,103 +613,173 @@ trait JsonapiTesterActions
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Checks if file doesn't exist
+ * Asserts that a file exists and is not readable.
*
- * @param string $filename
+ * @param string $file
* @param string $message
- * @see \Codeception\Module\Asserts::assertFileNotExists()
+ * @see \Codeception\Module\AbstractAsserts::assertFileIsNotReadable()
*/
- public function assertFileNotExists($filename, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args()));
+ public function assertFileIsNotReadable($file, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsNotReadable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a file exists and is not writable.
+ *
+ * @param string $file
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertFileIsNotWritable()
+ */
+ public function assertFileIsNotWritable($file, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsNotWritable', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a file exists and is readable.
+ *
+ * @param string $file
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertFileIsReadable()
+ */
+ public function assertFileIsReadable($file, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsReadable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a file exists and is writable.
+ *
+ * @param string $file
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertFileIsWritable()
+ */
+ public function assertFileIsWritable($file, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsWritable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that the contents of one file is not equal to the contents of another file.
+ *
* @param $expected
* @param $actual
- * @param $description
- * @see \Codeception\Module\Asserts::assertGreaterOrEquals()
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertFileNotEquals()
*/
- public function assertGreaterOrEquals($expected, $actual, $description = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterOrEquals', func_get_args()));
+ public function assertFileNotEquals($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEquals', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that the contents of one file is not equal to the contents of another file (canonicalizing).
+ *
* @param $expected
* @param $actual
- * @param $description
- * @see \Codeception\Module\Asserts::assertLessOrEquals()
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertFileNotEqualsCanonicalizing()
*/
- public function assertLessOrEquals($expected, $actual, $description = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessOrEquals', func_get_args()));
+ public function assertFileNotEqualsCanonicalizing($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEqualsCanonicalizing', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that the contents of one file is not equal to the contents of another file (ignoring case).
+ *
+ * @param $expected
* @param $actual
- * @param $description
- * @see \Codeception\Module\Asserts::assertIsEmpty()
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertFileNotEqualsIgnoringCase()
*/
- public function assertIsEmpty($actual, $description = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsEmpty', func_get_args()));
+ public function assertFileNotEqualsIgnoringCase($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEqualsIgnoringCase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * @param $key
+ * Asserts that a variable is finite.
+ *
* @param $actual
- * @param $description
- * @see \Codeception\Module\Asserts::assertArrayHasKey()
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertFinite()
*/
- public function assertArrayHasKey($key, $actual, $description = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayHasKey', func_get_args()));
+ public function assertFinite($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFinite', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * @param $key
+ * Asserts that a value is greater than another value.
+ *
+ * @param $expected
* @param $actual
- * @param $description
- * @see \Codeception\Module\Asserts::assertArrayNotHasKey()
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertGreaterThan()
*/
- public function assertArrayNotHasKey($key, $actual, $description = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayNotHasKey', func_get_args()));
+ public function assertGreaterThan($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * @param $expectedCount
+ * Asserts that a value is greater than or equal to another value.
+ *
+ * @param $expected
* @param $actual
- * @param $description
- * @see \Codeception\Module\Asserts::assertCount()
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertGreaterThanOrEqual()
*/
- public function assertCount($expectedCount, $actual, $description = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertCount', func_get_args()));
+ public function assertGreaterThanOrEqual($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is infinite.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertInfinite()
+ */
+ public function assertInfinite($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInfinite', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * @param $class
+ * Asserts that a variable is of a given type.
+ *
+ * @param $expected
* @param $actual
- * @param $description
- * @see \Codeception\Module\Asserts::assertInstanceOf()
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertInstanceOf()
*/
- public function assertInstanceOf($class, $actual, $description = null) {
+ public function assertInstanceOf($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInstanceOf', func_get_args()));
}
@@ -527,159 +787,307 @@ trait JsonapiTesterActions
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * @param $class
+ * Asserts that a variable is of type array.
+ *
* @param $actual
- * @param $description
- * @see \Codeception\Module\Asserts::assertNotInstanceOf()
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsArray()
*/
- public function assertNotInstanceOf($class, $actual, $description = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotInstanceOf', func_get_args()));
+ public function assertIsArray($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsArray', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * @param $type
+ * Asserts that a variable is of type bool.
+ *
* @param $actual
- * @param $description
- * @see \Codeception\Module\Asserts::assertInternalType()
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsBool()
*/
- public function assertInternalType($type, $actual, $description = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInternalType', func_get_args()));
+ public function assertIsBool($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsBool', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * Fails the test with message.
+ * Asserts that a variable is of type callable.
*
- * @param $message
- * @see \Codeception\Module\Asserts::fail()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsCallable()
*/
- public function fail($message) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args()));
+ public function assertIsCallable($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsCallable', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is of type resource and is closed.
*
- * @see \Codeception\Module\Asserts::assertStringContainsString()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsClosedResource()
*/
- public function assertStringContainsString($needle, $haystack, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsString', func_get_args()));
+ public function assertIsClosedResource($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsClosedResource', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is of type float.
*
- * @see \Codeception\Module\Asserts::assertStringNotContainsString()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsFloat()
*/
- public function assertStringNotContainsString($needle, $haystack, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsString', func_get_args()));
+ public function assertIsFloat($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsFloat', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is of type int.
*
- * @see \Codeception\Module\Asserts::assertStringContainsStringIgnoringCase()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsInt()
*/
- public function assertStringContainsStringIgnoringCase($needle, $haystack, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsStringIgnoringCase', func_get_args()));
+ public function assertIsInt($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsInt', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is of type iterable.
*
- * @see \Codeception\Module\Asserts::assertStringNotContainsStringIgnoringCase()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsIterable()
*/
- public function assertStringNotContainsStringIgnoringCase($needle, $haystack, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsStringIgnoringCase', func_get_args()));
+ public function assertIsIterable($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsIterable', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * @since 1.1.0 of module-asserts
- * @see \Codeception\Module\Asserts::assertStringEndsWith()
+ * Asserts that a variable is not of type array.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotArray()
*/
- public function assertStringEndsWith($suffix, $string, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsWith', func_get_args()));
+ public function assertIsNotArray($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotArray', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
- * @since 1.1.0 of module-asserts
- * @see \Codeception\Module\Asserts::assertStringEndsNotWith()
+ * Asserts that a variable is not of type bool.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotBool()
*/
- public function assertStringEndsNotWith($suffix, $string, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsNotWith', func_get_args()));
+ public function assertIsNotBool($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotBool', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is not of type callable.
*
- * @see \Codeception\Module\Asserts::assertIsArray()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotCallable()
*/
- public function assertIsArray($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsArray', func_get_args()));
+ public function assertIsNotCallable($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotCallable', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is not of type resource.
*
- * @see \Codeception\Module\Asserts::assertIsBool()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotClosedResource()
*/
- public function assertIsBool($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsBool', func_get_args()));
+ public function assertIsNotClosedResource($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotClosedResource', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is not of type float.
*
- * @see \Codeception\Module\Asserts::assertIsFloat()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotFloat()
*/
- public function assertIsFloat($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsFloat', func_get_args()));
+ public function assertIsNotFloat($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotFloat', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is not of type int.
*
- * @see \Codeception\Module\Asserts::assertIsInt()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotInt()
*/
- public function assertIsInt($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsInt', func_get_args()));
+ public function assertIsNotInt($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotInt', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is not of type iterable.
*
- * @see \Codeception\Module\Asserts::assertIsNumeric()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotIterable()
*/
- public function assertIsNumeric($actual, $message = null) {
+ public function assertIsNotIterable($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotIterable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is not of type numeric.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotNumeric()
+ */
+ public function assertIsNotNumeric($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotNumeric', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is not of type object.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotObject()
+ */
+ public function assertIsNotObject($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotObject', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a file/dir exists and is not readable.
+ *
+ * @param string $filename
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotReadable()
+ */
+ public function assertIsNotReadable($filename, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotReadable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is not of type resource.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotResource()
+ */
+ public function assertIsNotResource($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotResource', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is not of type scalar.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotScalar()
+ */
+ public function assertIsNotScalar($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotScalar', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is not of type string.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotString()
+ */
+ public function assertIsNotString($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotString', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a file/dir exists and is not writable.
+ *
+ * @param $filename
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNotWritable()
+ */
+ public function assertIsNotWritable($filename, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotWritable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is of type numeric.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsNumeric()
+ */
+ public function assertIsNumeric($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNumeric', func_get_args()));
}
@@ -687,10 +1095,13 @@ trait JsonapiTesterActions
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is of type object.
*
- * @see \Codeception\Module\Asserts::assertIsObject()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsObject()
*/
- public function assertIsObject($actual, $message = null) {
+ public function assertIsObject($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsObject', func_get_args()));
}
@@ -698,10 +1109,27 @@ trait JsonapiTesterActions
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a file/dir is readable.
+ *
+ * @param $filename
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsReadable()
+ */
+ public function assertIsReadable($filename, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsReadable', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is of type resource.
*
- * @see \Codeception\Module\Asserts::assertIsResource()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsResource()
*/
- public function assertIsResource($actual, $message = null) {
+ public function assertIsResource($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsResource', func_get_args()));
}
@@ -709,10 +1137,27 @@ trait JsonapiTesterActions
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is of type scalar.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsScalar()
+ */
+ public function assertIsScalar($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsScalar', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is of type string.
*
- * @see \Codeception\Module\Asserts::assertIsString()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsString()
*/
- public function assertIsString($actual, $message = null) {
+ public function assertIsString($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsString', func_get_args()));
}
@@ -720,143 +1165,192 @@ trait JsonapiTesterActions
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a file/dir exists and is writable.
*
- * @see \Codeception\Module\Asserts::assertIsScalar()
+ * @param $filename
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertIsWritable()
*/
- public function assertIsScalar($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsScalar', func_get_args()));
+ public function assertIsWritable($filename, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsWritable', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a string is a valid JSON string.
*
- * @see \Codeception\Module\Asserts::assertIsCallable()
+ * @param string $actualJson
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertJson()
*/
- public function assertIsCallable($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsCallable', func_get_args()));
+ public function assertJson($actualJson, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJson', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that two JSON files are equal.
*
- * @see \Codeception\Module\Asserts::assertIsNotArray()
+ * @param string $expectedFile
+ * @param string $actualFile
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertJsonFileEqualsJsonFile()
*/
- public function assertIsNotArray($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotArray', func_get_args()));
+ public function assertJsonFileEqualsJsonFile($expectedFile, $actualFile, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonFileEqualsJsonFile', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that two JSON files are not equal.
*
- * @see \Codeception\Module\Asserts::assertIsNotBool()
+ * @param string $expectedFile
+ * @param string $actualFile
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertJsonFileNotEqualsJsonFile()
*/
- public function assertIsNotBool($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotBool', func_get_args()));
+ public function assertJsonFileNotEqualsJsonFile($expectedFile, $actualFile, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonFileNotEqualsJsonFile', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that the generated JSON encoded object and the content of the given file are equal.
*
- * @see \Codeception\Module\Asserts::assertIsNotFloat()
+ * @param string $expectedFile
+ * @param string $actualJson
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertJsonStringEqualsJsonFile()
*/
- public function assertIsNotFloat($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotFloat', func_get_args()));
+ public function assertJsonStringEqualsJsonFile($expectedFile, $actualJson, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringEqualsJsonFile', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that two given JSON encoded objects or arrays are equal.
*
- * @see \Codeception\Module\Asserts::assertIsNotInt()
+ * @param string $expectedJson
+ * @param string $actualJson
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertJsonStringEqualsJsonString()
*/
- public function assertIsNotInt($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotInt', func_get_args()));
+ public function assertJsonStringEqualsJsonString($expectedJson, $actualJson, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringEqualsJsonString', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that the generated JSON encoded object and the content of the given file are not equal.
*
- * @see \Codeception\Module\Asserts::assertIsNotNumeric()
+ * @param string $expectedFile
+ * @param string $actualJson
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertJsonStringNotEqualsJsonFile()
*/
- public function assertIsNotNumeric($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotNumeric', func_get_args()));
+ public function assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringNotEqualsJsonFile', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that two given JSON encoded objects or arrays are not equal.
*
- * @see \Codeception\Module\Asserts::assertIsNotObject()
+ * @param string $expectedJson
+ * @param string $actualJson
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertJsonStringNotEqualsJsonString()
*/
- public function assertIsNotObject($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotObject', func_get_args()));
+ public function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringNotEqualsJsonString', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a value is smaller than another value.
*
- * @see \Codeception\Module\Asserts::assertIsNotResource()
+ * @param $expected
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertLessThan()
*/
- public function assertIsNotResource($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotResource', func_get_args()));
+ public function assertLessThan($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a value is smaller than or equal to another value.
*
- * @see \Codeception\Module\Asserts::assertIsNotString()
+ * @param $expected
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertLessThanOrEqual()
*/
- public function assertIsNotString($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotString', func_get_args()));
+ public function assertLessThanOrEqual($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a string matches a given regular expression.
*
- * @see \Codeception\Module\Asserts::assertIsNotScalar()
+ * @param string $pattern
+ * @param string $string
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertMatchesRegularExpression()
*/
- public function assertIsNotScalar($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotScalar', func_get_args()));
+ public function assertMatchesRegularExpression($pattern, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertMatchesRegularExpression', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is nan.
*
- * @see \Codeception\Module\Asserts::assertIsNotCallable()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNan()
*/
- public function assertIsNotCallable($actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotCallable', func_get_args()));
+ public function assertNan($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNan', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a haystack does not contain a needle.
*
- * @see \Codeception\Module\Asserts::assertEqualsCanonicalizing()
+ * @param $needle
+ * @param $haystack
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotContains()
*/
- public function assertEqualsCanonicalizing($expected, $actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsCanonicalizing', func_get_args()));
+ public function assertNotContains($needle, $haystack, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args()));
}
@@ -864,53 +1358,115 @@ trait JsonapiTesterActions
* [!] Method is generated. Documentation taken from corresponding module.
*
*
- * @see \Codeception\Module\Asserts::assertNotEqualsCanonicalizing()
+ * @see \Codeception\Module\AbstractAsserts::assertNotContainsEquals()
*/
- public function assertNotEqualsCanonicalizing($expected, $actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsCanonicalizing', func_get_args()));
+ public function assertNotContainsEquals($needle, $haystack, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContainsEquals', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a haystack does not contain only values of a given type.
*
- * @see \Codeception\Module\Asserts::assertEqualsIgnoringCase()
+ * @param string $type
+ * @param $haystack
+ * @param bool|null $isNativeType
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotContainsOnly()
*/
- public function assertEqualsIgnoringCase($expected, $actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsIgnoringCase', func_get_args()));
+ public function assertNotContainsOnly($type, $haystack, $isNativeType = NULL, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContainsOnly', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts the number of elements of an array, Countable or Traversable.
*
- * @see \Codeception\Module\Asserts::assertNotEqualsIgnoringCase()
+ * @param int $expectedCount
+ * @param Countable|iterable $haystack
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotCount()
*/
- public function assertNotEqualsIgnoringCase($expected, $actual, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsIgnoringCase', func_get_args()));
+ public function assertNotCount($expectedCount, $haystack, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotCount', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a variable is not empty.
*
- * @see \Codeception\Module\Asserts::assertEqualsWithDelta()
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotEmpty()
*/
- public function assertEqualsWithDelta($expected, $actual, $delta, $message = null) {
- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsWithDelta', func_get_args()));
+ public function assertNotEmpty($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two variables are not equal.
+ *
+ * @param $expected
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotEquals()
+ */
+ public function assertNotEquals($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two variables are not equal (canonicalizing).
+ *
+ * @param $expected
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotEqualsCanonicalizing()
+ */
+ public function assertNotEqualsCanonicalizing($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsCanonicalizing', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two variables are not equal (ignoring case).
+ *
+ * @param $expected
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotEqualsIgnoringCase()
+ */
+ public function assertNotEqualsIgnoringCase($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsIgnoringCase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that two variables are not equal (with delta).
*
- * @see \Codeception\Module\Asserts::assertNotEqualsWithDelta()
+ * @param $expected
+ * @param $actual
+ * @param float $delta
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotEqualsWithDelta()
*/
- public function assertNotEqualsWithDelta($expected, $actual, $delta, $message = null) {
+ public function assertNotEqualsWithDelta($expected, $actual, $delta, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsWithDelta', func_get_args()));
}
@@ -918,6 +1474,584 @@ trait JsonapiTesterActions
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
+ * Asserts that a condition is not false.
+ *
+ * @param $condition
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotFalse()
+ */
+ public function assertNotFalse($condition, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotFalse', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is not of a given type.
+ *
+ * @param $expected
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotInstanceOf()
+ */
+ public function assertNotInstanceOf($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotInstanceOf', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is not null.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotNull()
+ */
+ public function assertNotNull($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two variables do not have the same type and value.
+ *
+ * @param $expected
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotSame()
+ */
+ public function assertNotSame($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
+ *
+ * @param Countable|iterable $expected
+ * @param Countable|iterable $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotSameSize()
+ */
+ public function assertNotSameSize($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSameSize', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a condition is not true.
+ *
+ * @param $condition
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNotTrue()
+ */
+ public function assertNotTrue($condition, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotTrue', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a variable is null.
+ *
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertNull()
+ */
+ public function assertNull($actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that an object has a specified attribute.
+ *
+ * @param string $attributeName
+ * @param object $object
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertObjectHasAttribute()
+ */
+ public function assertObjectHasAttribute($attributeName, $object, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertObjectHasAttribute', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that an object does not have a specified attribute.
+ *
+ * @param string $attributeName
+ * @param object $object
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertObjectNotHasAttribute()
+ */
+ public function assertObjectNotHasAttribute($attributeName, $object, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertObjectNotHasAttribute', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two variables have the same type and value.
+ *
+ * @param $expected
+ * @param $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertSame()
+ */
+ public function assertSame($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
+ *
+ * @param Countable|iterable $expected
+ * @param Countable|iterable $actual
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertSameSize()
+ */
+ public function assertSameSize($expected, $actual, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSameSize', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * @param string $needle
+ * @param string $haystack
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringContainsString()
+ */
+ public function assertStringContainsString($needle, $haystack, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsString', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ *
+ * @see \Codeception\Module\AbstractAsserts::assertStringContainsStringIgnoringCase()
+ */
+ public function assertStringContainsStringIgnoringCase($needle, $haystack, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsStringIgnoringCase', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a string ends not with a given suffix.
+ *
+ * @param string $suffix
+ * @param string $string
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringEndsNotWith()
+ */
+ public function assertStringEndsNotWith($suffix, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsNotWith', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a string ends with a given suffix.
+ *
+ * @param string $suffix
+ * @param string $string
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringEndsWith()
+ */
+ public function assertStringEndsWith($suffix, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsWith', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that the contents of a string is equal to the contents of a file.
+ *
+ * @param string $expectedFile
+ * @param string $actualString
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringEqualsFile()
+ */
+ public function assertStringEqualsFile($expectedFile, $actualString, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFile', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that the contents of a string is equal to the contents of a file (canonicalizing).
+ *
+ * @param string $expectedFile
+ * @param string $actualString
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringEqualsFileCanonicalizing()
+ */
+ public function assertStringEqualsFileCanonicalizing($expectedFile, $actualString, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFileCanonicalizing', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that the contents of a string is equal to the contents of a file (ignoring case).
+ *
+ * @param string $expectedFile
+ * @param string $actualString
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringEqualsFileIgnoringCase()
+ */
+ public function assertStringEqualsFileIgnoringCase($expectedFile, $actualString, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFileIgnoringCase', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a string matches a given format string.
+ *
+ * @param string $format
+ * @param string $string
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringMatchesFormat()
+ */
+ public function assertStringMatchesFormat($format, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringMatchesFormat', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a string matches a given format file.
+ *
+ * @param string $formatFile
+ * @param string $string
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringMatchesFormatFile()
+ */
+ public function assertStringMatchesFormatFile($formatFile, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringMatchesFormatFile', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * @param string $needle
+ * @param string $haystack
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringNotContainsString()
+ */
+ public function assertStringNotContainsString($needle, $haystack, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsString', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * @param string $needle
+ * @param string $haystack
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringNotContainsStringIgnoringCase()
+ */
+ public function assertStringNotContainsStringIgnoringCase($needle, $haystack, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsStringIgnoringCase', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that the contents of a string is not equal to the contents of a file.
+ *
+ * @param string $expectedFile
+ * @param string $actualString
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFile()
+ */
+ public function assertStringNotEqualsFile($expectedFile, $actualString, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFile', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that the contents of a string is not equal to the contents of a file (canonicalizing).
+ * @param string $expectedFile
+ * @param string $actualString
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFileCanonicalizing()
+ */
+ public function assertStringNotEqualsFileCanonicalizing($expectedFile, $actualString, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFileCanonicalizing', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that the contents of a string is not equal to the contents of a file (ignoring case).
+ *
+ * @param string $expectedFile
+ * @param string $actualString
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFileIgnoringCase()
+ */
+ public function assertStringNotEqualsFileIgnoringCase($expectedFile, $actualString, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFileIgnoringCase', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a string does not match a given format string.
+ *
+ * @param string $format
+ * @param string $string
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringNotMatchesFormat()
+ */
+ public function assertStringNotMatchesFormat($format, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotMatchesFormat', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a string does not match a given format string.
+ *
+ * @param string $formatFile
+ * @param string $string
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringNotMatchesFormatFile()
+ */
+ public function assertStringNotMatchesFormatFile($formatFile, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotMatchesFormatFile', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a string starts not with a given prefix.
+ *
+ * @param string $prefix
+ * @param string $string
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringStartsNotWith()
+ */
+ public function assertStringStartsNotWith($prefix, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsNotWith', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a string starts with a given prefix.
+ *
+ * @param string $prefix
+ * @param string $string
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertStringStartsWith()
+ */
+ public function assertStringStartsWith($prefix, $string, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsWith', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Evaluates a PHPUnit\Framework\Constraint matcher object.
+ *
+ * @param $value
+ * @param Constraint $constraint
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertThat()
+ */
+ public function assertThat($value, $constraint, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertThat', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that a condition is true.
+ *
+ * @param $condition
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertTrue()
+ */
+ public function assertTrue($condition, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two XML files are equal.
+ *
+ * @param string $expectedFile
+ * @param string $actualFile
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertXmlFileEqualsXmlFile()
+ */
+ public function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlFileEqualsXmlFile', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two XML files are not equal.
+ *
+ * @param string $expectedFile
+ * @param string $actualFile
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertXmlFileNotEqualsXmlFile()
+ */
+ public function assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlFileNotEqualsXmlFile', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two XML documents are equal.
+ *
+ * @param string $expectedFile
+ * @param DOMDocument|string $actualXml
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertXmlStringEqualsXmlFile()
+ */
+ public function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringEqualsXmlFile', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two XML documents are equal.
+ *
+ * @param DOMDocument|string $expectedXml
+ * @param DOMDocument|string $actualXml
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertXmlStringEqualsXmlString()
+ */
+ public function assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringEqualsXmlString', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two XML documents are not equal.
+ *
+ * @param string $expectedFile
+ * @param DOMDocument|string $actualXml
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertXmlStringNotEqualsXmlFile()
+ */
+ public function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlFile', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Asserts that two XML documents are not equal.
+ *
+ * @param DOMDocument|string $expectedXml
+ * @param DOMDocument|string $actualXml
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::assertXmlStringNotEqualsXmlString()
+ */
+ public function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlString', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Fails a test with the given message.
+ *
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::fail()
+ */
+ public function fail($message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Mark the test as incomplete.
+ *
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::markTestIncomplete()
+ */
+ public function markTestIncomplete($message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestIncomplete', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Mark the test as skipped.
+ *
+ * @param string $message
+ * @see \Codeception\Module\AbstractAsserts::markTestSkipped()
+ */
+ public function markTestSkipped($message = "") {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestSkipped', func_get_args()));
+ }
+
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
*
* @see \Helper\Credentials::getCredentialsForTestAutor()
*/
@@ -976,7 +2110,7 @@ trait JsonapiTesterActions
*
* @see \Helper\Jsonapi::createApp()
*/
- public function createApp($credentials, $method, $pattern, $callable, $name = null) {
+ public function createApp($credentials, $method, $pattern, $callable, $name = NULL) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('createApp', func_get_args()));
}
@@ -987,7 +2121,7 @@ trait JsonapiTesterActions
*
* @see \Helper\Jsonapi::createRequestBuilder()
*/
- public function createRequestBuilder($credentials = null) {
+ public function createRequestBuilder($credentials = NULL) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('createRequestBuilder', func_get_args()));
}
@@ -998,7 +2132,7 @@ trait JsonapiTesterActions
*
* @see \Helper\Jsonapi::sendMockRequest()
*/
- public function sendMockRequest($app, $request) {
+ public function sendMockRequest($app, \Slim\Http\Request $request) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('sendMockRequest', func_get_args()));
}
@@ -1009,7 +2143,7 @@ trait JsonapiTesterActions
*
* @see \Helper\Jsonapi::storeJsonMD()
*/
- public function storeJsonMD($filename, $response, $limit = null, $ellipsis = null) {
+ public function storeJsonMD($filename, \Psr\Http\Message\ResponseInterface $response, $limit = NULL, $ellipsis = NULL) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('storeJsonMD', func_get_args()));
}
}
diff --git a/tests/_support/_generated/UnitTesterActions.php b/tests/_support/_generated/UnitTesterActions.php
index a852f52..c07f08d 100644
--- a/tests/_support/_generated/UnitTesterActions.php
+++ b/tests/_support/_generated/UnitTesterActions.php
@@ -1,4 +1,4 @@
-<?php //[STAMP] fa8df0490412d9204c4540517c0a830a
+<?php //[STAMP] 0c514e6a0684bf12cca1e1c5550cee92
namespace _generated;
// This class was automatically generated by build task
@@ -39,7 +39,7 @@ trait UnitTesterActions
* ```
*
* @deprecated Use expectThrowable() instead
- * @param Exception|string $exception
+ * @param \Exception|string $exception
* @param callable $callback
* @see \Codeception\Module\Asserts::expectException()
*/
@@ -73,7 +73,7 @@ trait UnitTesterActions
* });
* ```
*
- * @param Throwable|string $throwable
+ * @param \Throwable|string $throwable
* @param callable $callback
* @see \Codeception\Module\Asserts::expectThrowable()
*/
@@ -91,7 +91,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileNotExists()
*/
- public function assertFileNotExists($filename, $message = null) {
+ public function assertFileNotExists($filename, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args()));
}
@@ -106,7 +106,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertGreaterOrEquals()
*/
- public function assertGreaterOrEquals($expected, $actual, $message = null) {
+ public function assertGreaterOrEquals($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterOrEquals', func_get_args()));
}
@@ -120,7 +120,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsEmpty()
*/
- public function assertIsEmpty($actual, $message = null) {
+ public function assertIsEmpty($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsEmpty', func_get_args()));
}
@@ -135,7 +135,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertLessOrEquals()
*/
- public function assertLessOrEquals($expected, $actual, $message = null) {
+ public function assertLessOrEquals($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessOrEquals', func_get_args()));
}
@@ -150,7 +150,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotRegExp()
*/
- public function assertNotRegExp($pattern, $string, $message = null) {
+ public function assertNotRegExp($pattern, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args()));
}
@@ -165,7 +165,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertRegExp()
*/
- public function assertRegExp($pattern, $string, $message = null) {
+ public function assertRegExp($pattern, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args()));
}
@@ -180,7 +180,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertThatItsNot()
*/
- public function assertThatItsNot($value, $constraint, $message = null) {
+ public function assertThatItsNot($value, $constraint, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertThatItsNot', func_get_args()));
}
@@ -195,7 +195,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertArrayHasKey()
*/
- public function assertArrayHasKey($key, $array, $message = null) {
+ public function assertArrayHasKey($key, $array, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayHasKey', func_get_args()));
}
@@ -210,7 +210,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertArrayNotHasKey()
*/
- public function assertArrayNotHasKey($key, $array, $message = null) {
+ public function assertArrayNotHasKey($key, $array, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayNotHasKey', func_get_args()));
}
@@ -225,7 +225,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertClassHasAttribute()
*/
- public function assertClassHasAttribute($attributeName, $className, $message = null) {
+ public function assertClassHasAttribute($attributeName, $className, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassHasAttribute', func_get_args()));
}
@@ -240,7 +240,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertClassHasStaticAttribute()
*/
- public function assertClassHasStaticAttribute($attributeName, $className, $message = null) {
+ public function assertClassHasStaticAttribute($attributeName, $className, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassHasStaticAttribute', func_get_args()));
}
@@ -255,7 +255,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertClassNotHasAttribute()
*/
- public function assertClassNotHasAttribute($attributeName, $className, $message = null) {
+ public function assertClassNotHasAttribute($attributeName, $className, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassNotHasAttribute', func_get_args()));
}
@@ -270,7 +270,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertClassNotHasStaticAttribute()
*/
- public function assertClassNotHasStaticAttribute($attributeName, $className, $message = null) {
+ public function assertClassNotHasStaticAttribute($attributeName, $className, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertClassNotHasStaticAttribute', func_get_args()));
}
@@ -285,7 +285,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertContains()
*/
- public function assertContains($needle, $haystack, $message = null) {
+ public function assertContains($needle, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args()));
}
@@ -298,7 +298,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertContainsEquals()
*/
- public function assertContainsEquals($needle, $haystack, $message = null) {
+ public function assertContainsEquals($needle, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsEquals', func_get_args()));
}
@@ -314,7 +314,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertContainsOnly()
*/
- public function assertContainsOnly($type, $haystack, $isNativeType = null, $message = null) {
+ public function assertContainsOnly($type, $haystack, $isNativeType = NULL, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsOnly', func_get_args()));
}
@@ -329,7 +329,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertContainsOnlyInstancesOf()
*/
- public function assertContainsOnlyInstancesOf($className, $haystack, $message = null) {
+ public function assertContainsOnlyInstancesOf($className, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContainsOnlyInstancesOf', func_get_args()));
}
@@ -344,7 +344,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertCount()
*/
- public function assertCount($expectedCount, $haystack, $message = null) {
+ public function assertCount($expectedCount, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertCount', func_get_args()));
}
@@ -358,7 +358,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertDirectoryDoesNotExist()
*/
- public function assertDirectoryDoesNotExist($directory, $message = null) {
+ public function assertDirectoryDoesNotExist($directory, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryDoesNotExist', func_get_args()));
}
@@ -372,7 +372,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertDirectoryExists()
*/
- public function assertDirectoryExists($directory, $message = null) {
+ public function assertDirectoryExists($directory, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryExists', func_get_args()));
}
@@ -386,7 +386,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertDirectoryIsNotReadable()
*/
- public function assertDirectoryIsNotReadable($directory, $message = null) {
+ public function assertDirectoryIsNotReadable($directory, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsNotReadable', func_get_args()));
}
@@ -400,7 +400,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertDirectoryIsNotWritable()
*/
- public function assertDirectoryIsNotWritable($directory, $message = null) {
+ public function assertDirectoryIsNotWritable($directory, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsNotWritable', func_get_args()));
}
@@ -414,7 +414,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertDirectoryIsReadable()
*/
- public function assertDirectoryIsReadable($directory, $message = null) {
+ public function assertDirectoryIsReadable($directory, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsReadable', func_get_args()));
}
@@ -428,7 +428,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertDirectoryIsWritable()
*/
- public function assertDirectoryIsWritable($directory, $message = null) {
+ public function assertDirectoryIsWritable($directory, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDirectoryIsWritable', func_get_args()));
}
@@ -443,7 +443,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertDoesNotMatchRegularExpression()
*/
- public function assertDoesNotMatchRegularExpression($pattern, $string, $message = null) {
+ public function assertDoesNotMatchRegularExpression($pattern, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertDoesNotMatchRegularExpression', func_get_args()));
}
@@ -457,7 +457,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertEmpty()
*/
- public function assertEmpty($actual, $message = null) {
+ public function assertEmpty($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args()));
}
@@ -472,7 +472,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertEquals()
*/
- public function assertEquals($expected, $actual, $message = null) {
+ public function assertEquals($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args()));
}
@@ -487,7 +487,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertEqualsCanonicalizing()
*/
- public function assertEqualsCanonicalizing($expected, $actual, $message = null) {
+ public function assertEqualsCanonicalizing($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsCanonicalizing', func_get_args()));
}
@@ -502,7 +502,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertEqualsIgnoringCase()
*/
- public function assertEqualsIgnoringCase($expected, $actual, $message = null) {
+ public function assertEqualsIgnoringCase($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsIgnoringCase', func_get_args()));
}
@@ -518,7 +518,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertEqualsWithDelta()
*/
- public function assertEqualsWithDelta($expected, $actual, $delta, $message = null) {
+ public function assertEqualsWithDelta($expected, $actual, $delta, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEqualsWithDelta', func_get_args()));
}
@@ -532,7 +532,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFalse()
*/
- public function assertFalse($condition, $message = null) {
+ public function assertFalse($condition, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args()));
}
@@ -546,7 +546,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileDoesNotExist()
*/
- public function assertFileDoesNotExist($filename, $message = null) {
+ public function assertFileDoesNotExist($filename, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileDoesNotExist', func_get_args()));
}
@@ -561,7 +561,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileEquals()
*/
- public function assertFileEquals($expected, $actual, $message = null) {
+ public function assertFileEquals($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEquals', func_get_args()));
}
@@ -576,7 +576,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileEqualsCanonicalizing()
*/
- public function assertFileEqualsCanonicalizing($expected, $actual, $message = null) {
+ public function assertFileEqualsCanonicalizing($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEqualsCanonicalizing', func_get_args()));
}
@@ -591,7 +591,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileEqualsIgnoringCase()
*/
- public function assertFileEqualsIgnoringCase($expected, $actual, $message = null) {
+ public function assertFileEqualsIgnoringCase($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileEqualsIgnoringCase', func_get_args()));
}
@@ -605,7 +605,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileExists()
*/
- public function assertFileExists($filename, $message = null) {
+ public function assertFileExists($filename, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args()));
}
@@ -619,7 +619,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileIsNotReadable()
*/
- public function assertFileIsNotReadable($file, $message = null) {
+ public function assertFileIsNotReadable($file, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsNotReadable', func_get_args()));
}
@@ -633,7 +633,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileIsNotWritable()
*/
- public function assertFileIsNotWritable($file, $message = null) {
+ public function assertFileIsNotWritable($file, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsNotWritable', func_get_args()));
}
@@ -647,7 +647,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileIsReadable()
*/
- public function assertFileIsReadable($file, $message = null) {
+ public function assertFileIsReadable($file, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsReadable', func_get_args()));
}
@@ -661,7 +661,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileIsWritable()
*/
- public function assertFileIsWritable($file, $message = null) {
+ public function assertFileIsWritable($file, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileIsWritable', func_get_args()));
}
@@ -676,7 +676,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileNotEquals()
*/
- public function assertFileNotEquals($expected, $actual, $message = null) {
+ public function assertFileNotEquals($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEquals', func_get_args()));
}
@@ -691,7 +691,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileNotEqualsCanonicalizing()
*/
- public function assertFileNotEqualsCanonicalizing($expected, $actual, $message = null) {
+ public function assertFileNotEqualsCanonicalizing($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEqualsCanonicalizing', func_get_args()));
}
@@ -706,7 +706,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFileNotEqualsIgnoringCase()
*/
- public function assertFileNotEqualsIgnoringCase($expected, $actual, $message = null) {
+ public function assertFileNotEqualsIgnoringCase($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotEqualsIgnoringCase', func_get_args()));
}
@@ -720,7 +720,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertFinite()
*/
- public function assertFinite($actual, $message = null) {
+ public function assertFinite($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFinite', func_get_args()));
}
@@ -735,7 +735,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertGreaterThan()
*/
- public function assertGreaterThan($expected, $actual, $message = null) {
+ public function assertGreaterThan($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args()));
}
@@ -750,7 +750,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertGreaterThanOrEqual()
*/
- public function assertGreaterThanOrEqual($expected, $actual, $message = null) {
+ public function assertGreaterThanOrEqual($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args()));
}
@@ -764,7 +764,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertInfinite()
*/
- public function assertInfinite($actual, $message = null) {
+ public function assertInfinite($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInfinite', func_get_args()));
}
@@ -779,7 +779,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertInstanceOf()
*/
- public function assertInstanceOf($expected, $actual, $message = null) {
+ public function assertInstanceOf($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInstanceOf', func_get_args()));
}
@@ -793,7 +793,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsArray()
*/
- public function assertIsArray($actual, $message = null) {
+ public function assertIsArray($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsArray', func_get_args()));
}
@@ -807,7 +807,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsBool()
*/
- public function assertIsBool($actual, $message = null) {
+ public function assertIsBool($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsBool', func_get_args()));
}
@@ -821,7 +821,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsCallable()
*/
- public function assertIsCallable($actual, $message = null) {
+ public function assertIsCallable($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsCallable', func_get_args()));
}
@@ -835,7 +835,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsClosedResource()
*/
- public function assertIsClosedResource($actual, $message = null) {
+ public function assertIsClosedResource($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsClosedResource', func_get_args()));
}
@@ -849,7 +849,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsFloat()
*/
- public function assertIsFloat($actual, $message = null) {
+ public function assertIsFloat($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsFloat', func_get_args()));
}
@@ -863,7 +863,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsInt()
*/
- public function assertIsInt($actual, $message = null) {
+ public function assertIsInt($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsInt', func_get_args()));
}
@@ -877,7 +877,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsIterable()
*/
- public function assertIsIterable($actual, $message = null) {
+ public function assertIsIterable($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsIterable', func_get_args()));
}
@@ -891,7 +891,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotArray()
*/
- public function assertIsNotArray($actual, $message = null) {
+ public function assertIsNotArray($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotArray', func_get_args()));
}
@@ -905,7 +905,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotBool()
*/
- public function assertIsNotBool($actual, $message = null) {
+ public function assertIsNotBool($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotBool', func_get_args()));
}
@@ -919,7 +919,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotCallable()
*/
- public function assertIsNotCallable($actual, $message = null) {
+ public function assertIsNotCallable($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotCallable', func_get_args()));
}
@@ -933,7 +933,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotClosedResource()
*/
- public function assertIsNotClosedResource($actual, $message = null) {
+ public function assertIsNotClosedResource($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotClosedResource', func_get_args()));
}
@@ -947,7 +947,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotFloat()
*/
- public function assertIsNotFloat($actual, $message = null) {
+ public function assertIsNotFloat($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotFloat', func_get_args()));
}
@@ -961,7 +961,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotInt()
*/
- public function assertIsNotInt($actual, $message = null) {
+ public function assertIsNotInt($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotInt', func_get_args()));
}
@@ -975,7 +975,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotIterable()
*/
- public function assertIsNotIterable($actual, $message = null) {
+ public function assertIsNotIterable($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotIterable', func_get_args()));
}
@@ -989,7 +989,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotNumeric()
*/
- public function assertIsNotNumeric($actual, $message = null) {
+ public function assertIsNotNumeric($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotNumeric', func_get_args()));
}
@@ -1003,7 +1003,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotObject()
*/
- public function assertIsNotObject($actual, $message = null) {
+ public function assertIsNotObject($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotObject', func_get_args()));
}
@@ -1017,7 +1017,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotReadable()
*/
- public function assertIsNotReadable($filename, $message = null) {
+ public function assertIsNotReadable($filename, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotReadable', func_get_args()));
}
@@ -1031,7 +1031,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotResource()
*/
- public function assertIsNotResource($actual, $message = null) {
+ public function assertIsNotResource($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotResource', func_get_args()));
}
@@ -1045,7 +1045,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotScalar()
*/
- public function assertIsNotScalar($actual, $message = null) {
+ public function assertIsNotScalar($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotScalar', func_get_args()));
}
@@ -1059,7 +1059,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotString()
*/
- public function assertIsNotString($actual, $message = null) {
+ public function assertIsNotString($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotString', func_get_args()));
}
@@ -1073,7 +1073,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNotWritable()
*/
- public function assertIsNotWritable($filename, $message = null) {
+ public function assertIsNotWritable($filename, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotWritable', func_get_args()));
}
@@ -1087,7 +1087,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsNumeric()
*/
- public function assertIsNumeric($actual, $message = null) {
+ public function assertIsNumeric($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNumeric', func_get_args()));
}
@@ -1101,7 +1101,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsObject()
*/
- public function assertIsObject($actual, $message = null) {
+ public function assertIsObject($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsObject', func_get_args()));
}
@@ -1115,7 +1115,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsReadable()
*/
- public function assertIsReadable($filename, $message = null) {
+ public function assertIsReadable($filename, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsReadable', func_get_args()));
}
@@ -1129,7 +1129,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsResource()
*/
- public function assertIsResource($actual, $message = null) {
+ public function assertIsResource($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsResource', func_get_args()));
}
@@ -1143,7 +1143,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsScalar()
*/
- public function assertIsScalar($actual, $message = null) {
+ public function assertIsScalar($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsScalar', func_get_args()));
}
@@ -1157,7 +1157,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsString()
*/
- public function assertIsString($actual, $message = null) {
+ public function assertIsString($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsString', func_get_args()));
}
@@ -1171,7 +1171,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertIsWritable()
*/
- public function assertIsWritable($filename, $message = null) {
+ public function assertIsWritable($filename, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsWritable', func_get_args()));
}
@@ -1185,7 +1185,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertJson()
*/
- public function assertJson($actualJson, $message = null) {
+ public function assertJson($actualJson, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJson', func_get_args()));
}
@@ -1200,7 +1200,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertJsonFileEqualsJsonFile()
*/
- public function assertJsonFileEqualsJsonFile($expectedFile, $actualFile, $message = null) {
+ public function assertJsonFileEqualsJsonFile($expectedFile, $actualFile, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonFileEqualsJsonFile', func_get_args()));
}
@@ -1215,7 +1215,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertJsonFileNotEqualsJsonFile()
*/
- public function assertJsonFileNotEqualsJsonFile($expectedFile, $actualFile, $message = null) {
+ public function assertJsonFileNotEqualsJsonFile($expectedFile, $actualFile, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonFileNotEqualsJsonFile', func_get_args()));
}
@@ -1230,7 +1230,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertJsonStringEqualsJsonFile()
*/
- public function assertJsonStringEqualsJsonFile($expectedFile, $actualJson, $message = null) {
+ public function assertJsonStringEqualsJsonFile($expectedFile, $actualJson, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringEqualsJsonFile', func_get_args()));
}
@@ -1245,7 +1245,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertJsonStringEqualsJsonString()
*/
- public function assertJsonStringEqualsJsonString($expectedJson, $actualJson, $message = null) {
+ public function assertJsonStringEqualsJsonString($expectedJson, $actualJson, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringEqualsJsonString', func_get_args()));
}
@@ -1260,7 +1260,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertJsonStringNotEqualsJsonFile()
*/
- public function assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = null) {
+ public function assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringNotEqualsJsonFile', func_get_args()));
}
@@ -1275,7 +1275,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertJsonStringNotEqualsJsonString()
*/
- public function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = null) {
+ public function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertJsonStringNotEqualsJsonString', func_get_args()));
}
@@ -1290,7 +1290,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertLessThan()
*/
- public function assertLessThan($expected, $actual, $message = null) {
+ public function assertLessThan($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args()));
}
@@ -1305,7 +1305,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertLessThanOrEqual()
*/
- public function assertLessThanOrEqual($expected, $actual, $message = null) {
+ public function assertLessThanOrEqual($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args()));
}
@@ -1320,7 +1320,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertMatchesRegularExpression()
*/
- public function assertMatchesRegularExpression($pattern, $string, $message = null) {
+ public function assertMatchesRegularExpression($pattern, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertMatchesRegularExpression', func_get_args()));
}
@@ -1334,7 +1334,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNan()
*/
- public function assertNan($actual, $message = null) {
+ public function assertNan($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNan', func_get_args()));
}
@@ -1349,7 +1349,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotContains()
*/
- public function assertNotContains($needle, $haystack, $message = null) {
+ public function assertNotContains($needle, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args()));
}
@@ -1360,7 +1360,7 @@ trait UnitTesterActions
*
* @see \Codeception\Module\AbstractAsserts::assertNotContainsEquals()
*/
- public function assertNotContainsEquals($needle, $haystack, $message = null) {
+ public function assertNotContainsEquals($needle, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContainsEquals', func_get_args()));
}
@@ -1376,7 +1376,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotContainsOnly()
*/
- public function assertNotContainsOnly($type, $haystack, $isNativeType = null, $message = null) {
+ public function assertNotContainsOnly($type, $haystack, $isNativeType = NULL, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContainsOnly', func_get_args()));
}
@@ -1391,7 +1391,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotCount()
*/
- public function assertNotCount($expectedCount, $haystack, $message = null) {
+ public function assertNotCount($expectedCount, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotCount', func_get_args()));
}
@@ -1405,7 +1405,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotEmpty()
*/
- public function assertNotEmpty($actual, $message = null) {
+ public function assertNotEmpty($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args()));
}
@@ -1420,7 +1420,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotEquals()
*/
- public function assertNotEquals($expected, $actual, $message = null) {
+ public function assertNotEquals($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args()));
}
@@ -1435,7 +1435,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotEqualsCanonicalizing()
*/
- public function assertNotEqualsCanonicalizing($expected, $actual, $message = null) {
+ public function assertNotEqualsCanonicalizing($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsCanonicalizing', func_get_args()));
}
@@ -1450,7 +1450,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotEqualsIgnoringCase()
*/
- public function assertNotEqualsIgnoringCase($expected, $actual, $message = null) {
+ public function assertNotEqualsIgnoringCase($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsIgnoringCase', func_get_args()));
}
@@ -1466,7 +1466,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotEqualsWithDelta()
*/
- public function assertNotEqualsWithDelta($expected, $actual, $delta, $message = null) {
+ public function assertNotEqualsWithDelta($expected, $actual, $delta, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEqualsWithDelta', func_get_args()));
}
@@ -1480,7 +1480,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotFalse()
*/
- public function assertNotFalse($condition, $message = null) {
+ public function assertNotFalse($condition, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotFalse', func_get_args()));
}
@@ -1495,7 +1495,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotInstanceOf()
*/
- public function assertNotInstanceOf($expected, $actual, $message = null) {
+ public function assertNotInstanceOf($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotInstanceOf', func_get_args()));
}
@@ -1509,7 +1509,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotNull()
*/
- public function assertNotNull($actual, $message = null) {
+ public function assertNotNull($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args()));
}
@@ -1524,7 +1524,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotSame()
*/
- public function assertNotSame($expected, $actual, $message = null) {
+ public function assertNotSame($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args()));
}
@@ -1539,7 +1539,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotSameSize()
*/
- public function assertNotSameSize($expected, $actual, $message = null) {
+ public function assertNotSameSize($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSameSize', func_get_args()));
}
@@ -1553,7 +1553,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNotTrue()
*/
- public function assertNotTrue($condition, $message = null) {
+ public function assertNotTrue($condition, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotTrue', func_get_args()));
}
@@ -1567,7 +1567,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertNull()
*/
- public function assertNull($actual, $message = null) {
+ public function assertNull($actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args()));
}
@@ -1582,7 +1582,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertObjectHasAttribute()
*/
- public function assertObjectHasAttribute($attributeName, $object, $message = null) {
+ public function assertObjectHasAttribute($attributeName, $object, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertObjectHasAttribute', func_get_args()));
}
@@ -1597,7 +1597,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertObjectNotHasAttribute()
*/
- public function assertObjectNotHasAttribute($attributeName, $object, $message = null) {
+ public function assertObjectNotHasAttribute($attributeName, $object, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertObjectNotHasAttribute', func_get_args()));
}
@@ -1612,7 +1612,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertSame()
*/
- public function assertSame($expected, $actual, $message = null) {
+ public function assertSame($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args()));
}
@@ -1627,7 +1627,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertSameSize()
*/
- public function assertSameSize($expected, $actual, $message = null) {
+ public function assertSameSize($expected, $actual, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSameSize', func_get_args()));
}
@@ -1640,7 +1640,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringContainsString()
*/
- public function assertStringContainsString($needle, $haystack, $message = null) {
+ public function assertStringContainsString($needle, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsString', func_get_args()));
}
@@ -1651,7 +1651,7 @@ trait UnitTesterActions
*
* @see \Codeception\Module\AbstractAsserts::assertStringContainsStringIgnoringCase()
*/
- public function assertStringContainsStringIgnoringCase($needle, $haystack, $message = null) {
+ public function assertStringContainsStringIgnoringCase($needle, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsStringIgnoringCase', func_get_args()));
}
@@ -1666,7 +1666,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringEndsNotWith()
*/
- public function assertStringEndsNotWith($suffix, $string, $message = null) {
+ public function assertStringEndsNotWith($suffix, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsNotWith', func_get_args()));
}
@@ -1681,7 +1681,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringEndsWith()
*/
- public function assertStringEndsWith($suffix, $string, $message = null) {
+ public function assertStringEndsWith($suffix, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEndsWith', func_get_args()));
}
@@ -1696,7 +1696,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringEqualsFile()
*/
- public function assertStringEqualsFile($expectedFile, $actualString, $message = null) {
+ public function assertStringEqualsFile($expectedFile, $actualString, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFile', func_get_args()));
}
@@ -1711,7 +1711,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringEqualsFileCanonicalizing()
*/
- public function assertStringEqualsFileCanonicalizing($expectedFile, $actualString, $message = null) {
+ public function assertStringEqualsFileCanonicalizing($expectedFile, $actualString, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFileCanonicalizing', func_get_args()));
}
@@ -1726,7 +1726,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringEqualsFileIgnoringCase()
*/
- public function assertStringEqualsFileIgnoringCase($expectedFile, $actualString, $message = null) {
+ public function assertStringEqualsFileIgnoringCase($expectedFile, $actualString, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringEqualsFileIgnoringCase', func_get_args()));
}
@@ -1741,7 +1741,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringMatchesFormat()
*/
- public function assertStringMatchesFormat($format, $string, $message = null) {
+ public function assertStringMatchesFormat($format, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringMatchesFormat', func_get_args()));
}
@@ -1756,7 +1756,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringMatchesFormatFile()
*/
- public function assertStringMatchesFormatFile($formatFile, $string, $message = null) {
+ public function assertStringMatchesFormatFile($formatFile, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringMatchesFormatFile', func_get_args()));
}
@@ -1769,7 +1769,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringNotContainsString()
*/
- public function assertStringNotContainsString($needle, $haystack, $message = null) {
+ public function assertStringNotContainsString($needle, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsString', func_get_args()));
}
@@ -1782,7 +1782,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringNotContainsStringIgnoringCase()
*/
- public function assertStringNotContainsStringIgnoringCase($needle, $haystack, $message = null) {
+ public function assertStringNotContainsStringIgnoringCase($needle, $haystack, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsStringIgnoringCase', func_get_args()));
}
@@ -1797,7 +1797,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFile()
*/
- public function assertStringNotEqualsFile($expectedFile, $actualString, $message = null) {
+ public function assertStringNotEqualsFile($expectedFile, $actualString, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFile', func_get_args()));
}
@@ -1811,7 +1811,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFileCanonicalizing()
*/
- public function assertStringNotEqualsFileCanonicalizing($expectedFile, $actualString, $message = null) {
+ public function assertStringNotEqualsFileCanonicalizing($expectedFile, $actualString, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFileCanonicalizing', func_get_args()));
}
@@ -1826,7 +1826,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringNotEqualsFileIgnoringCase()
*/
- public function assertStringNotEqualsFileIgnoringCase($expectedFile, $actualString, $message = null) {
+ public function assertStringNotEqualsFileIgnoringCase($expectedFile, $actualString, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotEqualsFileIgnoringCase', func_get_args()));
}
@@ -1841,7 +1841,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringNotMatchesFormat()
*/
- public function assertStringNotMatchesFormat($format, $string, $message = null) {
+ public function assertStringNotMatchesFormat($format, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotMatchesFormat', func_get_args()));
}
@@ -1856,7 +1856,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringNotMatchesFormatFile()
*/
- public function assertStringNotMatchesFormatFile($formatFile, $string, $message = null) {
+ public function assertStringNotMatchesFormatFile($formatFile, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotMatchesFormatFile', func_get_args()));
}
@@ -1871,7 +1871,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringStartsNotWith()
*/
- public function assertStringStartsNotWith($prefix, $string, $message = null) {
+ public function assertStringStartsNotWith($prefix, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsNotWith', func_get_args()));
}
@@ -1886,7 +1886,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertStringStartsWith()
*/
- public function assertStringStartsWith($prefix, $string, $message = null) {
+ public function assertStringStartsWith($prefix, $string, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsWith', func_get_args()));
}
@@ -1901,7 +1901,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertThat()
*/
- public function assertThat($value, $constraint, $message = null) {
+ public function assertThat($value, $constraint, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertThat', func_get_args()));
}
@@ -1915,7 +1915,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertTrue()
*/
- public function assertTrue($condition, $message = null) {
+ public function assertTrue($condition, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args()));
}
@@ -1930,7 +1930,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertXmlFileEqualsXmlFile()
*/
- public function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = null) {
+ public function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlFileEqualsXmlFile', func_get_args()));
}
@@ -1945,7 +1945,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertXmlFileNotEqualsXmlFile()
*/
- public function assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message = null) {
+ public function assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlFileNotEqualsXmlFile', func_get_args()));
}
@@ -1960,7 +1960,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertXmlStringEqualsXmlFile()
*/
- public function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = null) {
+ public function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringEqualsXmlFile', func_get_args()));
}
@@ -1975,7 +1975,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertXmlStringEqualsXmlString()
*/
- public function assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message = null) {
+ public function assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringEqualsXmlString', func_get_args()));
}
@@ -1990,7 +1990,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertXmlStringNotEqualsXmlFile()
*/
- public function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = null) {
+ public function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlFile', func_get_args()));
}
@@ -2005,7 +2005,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::assertXmlStringNotEqualsXmlString()
*/
- public function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = null) {
+ public function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlString', func_get_args()));
}
@@ -2018,7 +2018,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::fail()
*/
- public function fail($message = null) {
+ public function fail($message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args()));
}
@@ -2031,7 +2031,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::markTestIncomplete()
*/
- public function markTestIncomplete($message = null) {
+ public function markTestIncomplete($message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestIncomplete', func_get_args()));
}
@@ -2044,7 +2044,7 @@ trait UnitTesterActions
* @param string $message
* @see \Codeception\Module\AbstractAsserts::markTestSkipped()
*/
- public function markTestSkipped($message = null) {
+ public function markTestSkipped($message = "") {
return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestSkipped', func_get_args()));
}
}
diff --git a/tests/jsonapi/UserEventsIcalTest.php b/tests/jsonapi/UserEventsIcalTest.php
index 359763f..bf3d2ba 100644
--- a/tests/jsonapi/UserEventsIcalTest.php
+++ b/tests/jsonapi/UserEventsIcalTest.php
@@ -42,7 +42,7 @@ class UserEventsIcalTest extends \Codeception\Test\Unit
$response = $app($requestBuilder->getRequest(), new \Slim\Http\Response());
$this->tester->assertEquals(200, $response->getStatusCode());
- $this->tester->assertContains('BEGIN:VEVENT', (string) $response->getBody());
- $this->tester->assertContains('SUMMARY:blypyp', (string) $response->getBody());
+ $this->tester->assertStringContainsString('BEGIN:VEVENT', (string) $response->getBody());
+ $this->tester->assertStringContainsString('SUMMARY:blypyp', (string) $response->getBody());
}
}
diff --git a/tests/jsonapi/WikiCreateTest.php b/tests/jsonapi/WikiCreateTest.php
index 993fe74..114d450 100644
--- a/tests/jsonapi/WikiCreateTest.php
+++ b/tests/jsonapi/WikiCreateTest.php
@@ -55,6 +55,7 @@ class WikiCreateTest extends \Codeception\Test\Unit
'/courses/{id}/wiki',
WikiCreate::class
);
+ $app->get('/wiki-pages/{id}', function () {})->setName('get-wiki-page');
return $this->tester->sendMockRequest(
$app,
diff --git a/tests/jsonapi/WikiIndexTest.php b/tests/jsonapi/WikiIndexTest.php
index 3fe78a1..1113672 100644
--- a/tests/jsonapi/WikiIndexTest.php
+++ b/tests/jsonapi/WikiIndexTest.php
@@ -23,7 +23,7 @@ class WikiIndexTest extends \Codeception\Test\Unit
{
$credentials = $this->tester->getCredentialsForTestAutor();
$rangeId = 'a07535cf2f8a72df33c12ddfa4b53dde';
- $body = studip_utf8decode('Es gibt im Moment in diese Mannschaft, oh, einige Spieler vergessen ihren Profi was sie sind. Ich lese nicht sehr viele Zeitungen, aberich habe gehört viele Situationen. Erstens: Wir haben nicht offensivgespielt.');
+ $body = 'Es gibt im Moment in diese Mannschaft, oh, einige Spieler vergessen ihren Profi was sie sind. Ich lese nicht sehr viele Zeitungen, aberich habe gehört viele Situationen. Erstens: Wir haben nicht offensivgespielt.';
$this->createWikiPage($credentials['id'], $rangeId, 'yxilo', $body);
$this->createWikiPage($credentials['id'], $rangeId, 'ulyq', $body);
@@ -37,7 +37,7 @@ class WikiIndexTest extends \Codeception\Test\Unit
$this->tester->assertCount(count($countPages), $wikiPages);
$wikiPage = current($wikiPages);
- $this->tester->assertEquals($body, studip_utf8decode($wikiPage->attribute('content')));
+ $this->tester->assertEquals($body, $wikiPage->attribute('content'));
$this->tester->storeJsonMd('get_wiki_pages', $response, 2, '[...]');
}
@@ -46,6 +46,7 @@ class WikiIndexTest extends \Codeception\Test\Unit
private function getWikiIndex($credentials, $rangeId)
{
$app = $this->tester->createApp($credentials, 'get', '/courses/{id}/wiki', WikiIndex::class);
+ $app->get('/wiki-pages/{id}', function () {})->setName('get-wiki-page');
return $this->tester->sendMockRequest(
$app,
diff --git a/tests/jsonapi/WikiShowTest.php b/tests/jsonapi/WikiShowTest.php
index 310708b..51135fc 100644
--- a/tests/jsonapi/WikiShowTest.php
+++ b/tests/jsonapi/WikiShowTest.php
@@ -55,7 +55,7 @@ class WikiShowTest extends \Codeception\Test\Unit
private function createWikiPage($rangeId, $keyword, $body)
{
$wikiPage = new \WikiPage([$rangeId, $keyword, 0]);
- $wikiPage->body = studip_utf8decode($body);
+ $wikiPage->body = $body;
$wikiPage->user_id = 'nobody';
$wikiPage->store();
diff --git a/tests/jsonapi/WikiUpdateTest.php b/tests/jsonapi/WikiUpdateTest.php
index 606ae65..380952b 100644
--- a/tests/jsonapi/WikiUpdateTest.php
+++ b/tests/jsonapi/WikiUpdateTest.php
@@ -48,6 +48,7 @@ class WikiUpdateTest extends \Codeception\Test\Unit
],
];
$app = $this->tester->createApp($credentials, 'patch', '/wiki-pages/{id}', WikiUpdate::class);
+ $app->get('/wiki-pages/{id}', function () {})->setName('get-wiki-page');
return $this->tester->sendMockRequest(
$app,
@@ -62,7 +63,7 @@ class WikiUpdateTest extends \Codeception\Test\Unit
private function createWikiPage($rangeId, $keyword, $body)
{
$wikiPage = new \WikiPage([$rangeId, $keyword, 0]);
- $wikiPage->body = studip_utf8decode($body);
+ $wikiPage->body = $body;
$wikiPage->user_id = 'nobody';
$wikiPage->store();
diff --git a/tests/unit/_bootstrap.php b/tests/unit/_bootstrap.php
index cfa78f6..31c5c6b 100644
--- a/tests/unit/_bootstrap.php
+++ b/tests/unit/_bootstrap.php
@@ -38,8 +38,13 @@ require_once 'varstream.php';
define("TEST_FIXTURES_PATH", dirname(__DIR__) . "/_data/");
require __DIR__ . '/../../composer/autoload.php';
+
+global $STUDIP_BASE_PATH;
+$STUDIP_BASE_PATH = realpath(dirname(dirname(__FILE__)) . '/..');
+
require 'lib/classes/StudipAutoloader.php';
require 'lib/functions.php';
+require 'lib/visual.inc.php';
StudipAutoloader::setBasePath(realpath(__DIR__ . '/../..'));
StudipAutoloader::register();
diff --git a/tests/unit/lib/CalendarcolumnClassTest.php b/tests/unit/lib/CalendarcolumnClassTest.php
index 4171a89..063f97e 100644
--- a/tests/unit/lib/CalendarcolumnClassTest.php
+++ b/tests/unit/lib/CalendarcolumnClassTest.php
@@ -14,11 +14,11 @@ require_once 'lib/calendar/CalendarColumn.class.php';
class CalendarColumnCase extends \Codeception\Test\Unit {
- function setUp() {
+ function setUp(): void {
}
- function tearDown() {
+ function tearDown(): void {
}
@@ -62,11 +62,11 @@ class CalendarColumnCase extends \Codeception\Test\Unit {
$entry = ['start' => "1200", 'end' => "1230", 'title' => "test_title_number_2"];
$column->addEntry($entry);
$entries = $column->getEntries();
- $this->assertInternalType("array", $entries);
+ $this->assertIsArray($entries);
$this->assertEquals(2, count($entries));
$this->assertNotEquals($entries[0], $entry);
$this->assertEquals($entry, $entries[1]);
- $this->assertInternalType("array", $entries[1]);
+ $this->assertIsArray($entries[1]);
}
function test_wrong_entry() {
@@ -85,7 +85,7 @@ class CalendarColumnCase extends \Codeception\Test\Unit {
['start' => "1200", 'end' => "1400", 'title' => "test_title"]
];
$column = CalendarColumn::create()->addEntries($entries);
- $this->assertInternalType('array', $column->getEntries());
+ $this->assertIsArray($column->getEntries());
}
function test_erase_entries() {
@@ -93,7 +93,7 @@ class CalendarColumnCase extends \Codeception\Test\Unit {
$column = CalendarColumn::create()->addEntry($entry);
$column->eraseEntries();
$entries = $column->getEntries();
- $this->assertInternalType("array", $entries);
+ $this->assertIsArray($entries);
$this->assertEquals(0, count($entries));
}
diff --git a/tests/unit/lib/CalendarviewClassTest.php b/tests/unit/lib/CalendarviewClassTest.php
index 074f40a..962cd06 100644
--- a/tests/unit/lib/CalendarviewClassTest.php
+++ b/tests/unit/lib/CalendarviewClassTest.php
@@ -14,11 +14,11 @@ require_once 'lib/calendar/CalendarView.class.php';
class CalendarViewCase extends \Codeception\Test\Unit {
- function setUp() {
+ function setUp(): void {
}
- function tearDown() {
+ function tearDown(): void {
}
@@ -56,7 +56,7 @@ class CalendarViewCase extends \Codeception\Test\Unit {
$id2 = 4;
$view->addColumn($title2, "", $id2);
$columns = $view->getColumns();
- $this->assertInternalType("array", $columns);
+ $this->assertIsArray($columns);
$this->assertInstanceOf("CalendarColumn", $columns[0]);
$this->assertEquals($title1, $columns[0]->getTitle());
$this->assertEquals($id1, $columns[0]->getId());
@@ -87,7 +87,7 @@ class CalendarViewCase extends \Codeception\Test\Unit {
];
$view->addEntry($entry);
$entries = $view->getEntries();
- $this->assertInternalType("array", $entries);
+ $this->assertIsArray($entries);
$this->assertNotNull($entries['day_'.$id]);
}
@@ -101,5 +101,3 @@ class CalendarViewCase extends \Codeception\Test\Unit {
//Die anderen Methoden muss Till testen.
}
-
-
diff --git a/tests/unit/lib/VisualTest.php b/tests/unit/lib/VisualTest.php
index 3d2f03a..f3157b1 100644
--- a/tests/unit/lib/VisualTest.php
+++ b/tests/unit/lib/VisualTest.php
@@ -17,7 +17,7 @@ require_once 'lib/classes/SmileyFormat.php';
class VisualFunctionsTest extends \Codeception\Test\Unit
{
- public function setUp()
+ public function setUp(): void
{
static $config = [
'LOAD_EXTERNAL_MEDIA' => 'allow',
@@ -30,7 +30,7 @@ class VisualFunctionsTest extends \Codeception\Test\Unit
$GLOBALS['SYMBOL_SHORT'] = [];
}
- public function tearDown()
+ public function tearDown(): void
{
$GLOBALS['SMILEY_NO_DB'] = false;
}
diff --git a/tests/unit/lib/classes/AssetsClassTest.php b/tests/unit/lib/classes/AssetsClassTest.php
index 967bde0..d87499c 100644
--- a/tests/unit/lib/classes/AssetsClassTest.php
+++ b/tests/unit/lib/classes/AssetsClassTest.php
@@ -26,12 +26,12 @@ define('DYNAMIC_ASSETS_URL', 'http://www%d.example.com/public/');
class AssetsTestCase extends \Codeception\Test\Unit {
- function setUp() {
+ function setUp(): void {
Assets::set_assets_url(STATIC_ASSETS_URL);
}
- function tearDown() {
+ function tearDown(): void {
Assets::set_assets_url('');
}
@@ -57,12 +57,12 @@ class DynamicAssetsTestCase extends \Codeception\Test\Unit
{
- function setUp() {
+ function setUp(): void {
Assets::set_assets_url(DYNAMIC_ASSETS_URL);
}
- function tearDown() {
+ function tearDown(): void {
Assets::set_assets_url('');
}
@@ -90,12 +90,12 @@ class AssetsHelpersTestCase extends \Codeception\Test\Unit
{
- function setUp() {
+ function setUp(): void {
Assets::set_assets_url(STATIC_ASSETS_URL);
}
- function tearDown() {
+ function tearDown(): void {
Assets::set_assets_url('');
}
diff --git a/tests/unit/lib/classes/AvatarClassTest.php b/tests/unit/lib/classes/AvatarClassTest.php
index cc7bbbc..f531b26 100644
--- a/tests/unit/lib/classes/AvatarClassTest.php
+++ b/tests/unit/lib/classes/AvatarClassTest.php
@@ -22,7 +22,7 @@ require_once 'lib/phplib/Seminar_Perm.class.php';
*/
class AvatarTestCase extends \Codeception\Test\Unit {
- function setUp()
+ function setUp(): void
{
$stub = $this->createMock('Seminar_Perm');
// Configure the stub.
@@ -37,7 +37,7 @@ class AvatarTestCase extends \Codeception\Test\Unit {
$this->avatar = Avatar::getAvatar($this->avatar_id);
}
- function tearDown() {
+ function tearDown(): void {
unset($GLOBALS['DYNAMIC_CONTENT_PATH'], $GLOBALS['DYNAMIC_CONTENT_URL']);
}
@@ -70,7 +70,7 @@ class AvatarTestCase extends \Codeception\Test\Unit {
class CourseAvatarTestCase extends \Codeception\Test\Unit
{
- function setUp() {
+ function setUp(): void {
$this->avatar_id = "123456789";
$this->avatar = CourseAvatar::getAvatar($this->avatar_id);
@@ -96,7 +96,7 @@ class CourseAvatarTestCase extends \Codeception\Test\Unit
}
}
- function tearDown() {
+ function tearDown(): void {
stream_wrapper_unregister("var");
unset($GLOBALS['DYNAMIC_CONTENT_PATH'], $GLOBALS['DYNAMIC_CONTENT_URL']);
}
diff --git a/tests/unit/lib/classes/CronjobScheduleTest.php b/tests/unit/lib/classes/CronjobScheduleTest.php
index e218b7e..18ead9b 100644
--- a/tests/unit/lib/classes/CronjobScheduleTest.php
+++ b/tests/unit/lib/classes/CronjobScheduleTest.php
@@ -14,14 +14,14 @@ class CronjobTestSchedule extends SimpleORMap
class CronjobScheduleTest extends \Codeception\Test\Unit
{
- function setUp()
+ function setUp(): void
{
date_default_timezone_set('Europe/Berlin');
StudipTestHelper::set_up_tables(['cronjobs_schedules', 'cronjobs_tasks']);
}
- function tearDown()
+ function tearDown(): void
{
StudipTestHelper::tear_down_tables();
}
diff --git a/tests/unit/lib/classes/CsrfProtectionTest.php b/tests/unit/lib/classes/CsrfProtectionTest.php
index ce556b8..5bdbb30 100644
--- a/tests/unit/lib/classes/CsrfProtectionTest.php
+++ b/tests/unit/lib/classes/CsrfProtectionTest.php
@@ -12,7 +12,7 @@
class CSRFProtectionTokenTest extends \Codeception\Test\Unit
{
- function setUp()
+ function setUp(): void
{
if (session_id() === '') {
session_id("test-session");
@@ -21,7 +21,7 @@ class CSRFProtectionTokenTest extends \Codeception\Test\Unit
$_SESSION = [];
}
- function tearDown()
+ function tearDown(): void
{
$_SESSION = $this->original_session;
}
@@ -52,7 +52,7 @@ class CSRFProtectionTokenTest extends \Codeception\Test\Unit
function testTokenIsAString()
{
$token = CSRFProtection::token();
- $this->assertInternalType("string", $token);
+ $this->assertIsString($token);
}
function testTokenTag()
@@ -65,7 +65,7 @@ class CSRFProtectionTokenTest extends \Codeception\Test\Unit
class CSRFRequestTest extends \Codeception\Test\Unit
{
- function setUp()
+ function setUp(): void
{
if (session_id() === '') {
session_id("test-session");
@@ -77,7 +77,7 @@ class CSRFRequestTest extends \Codeception\Test\Unit
$_SERVER['HTTP_X_REQUESTED_WITH'] = null;
}
- function tearDown()
+ function tearDown(): void
{
list($_SESSION, $_POST, $_SERVER) = $this->original_state;
}
diff --git a/tests/unit/lib/classes/IconClassTest.php b/tests/unit/lib/classes/IconClassTest.php
index 67a5b29..de9d2b2 100644
--- a/tests/unit/lib/classes/IconClassTest.php
+++ b/tests/unit/lib/classes/IconClassTest.php
@@ -10,13 +10,13 @@
class IconClassTest extends \Codeception\Test\Unit
{
- function setUp()
+ function setUp(): void
{
$this->memo_assets_url = Assets::url();
Assets::set_assets_url('');
}
- function tearDown()
+ function tearDown(): void
{
Assets::set_assets_url($this->memo_assets_url);
}
diff --git a/tests/unit/lib/classes/MigrationTest.php b/tests/unit/lib/classes/MigrationTest.php
index 9513c52..7085c9e 100644
--- a/tests/unit/lib/classes/MigrationTest.php
+++ b/tests/unit/lib/classes/MigrationTest.php
@@ -11,7 +11,7 @@ class MigrationTest extends \Codeception\Test\Unit
protected $migrator;
protected $before = null;
- public function setUp()
+ public function setUp(): void
{
$this->before = isset($GLOBALS['CACHING_ENABLE'])
? $GLOBALS['CACHING_ENABLE']
@@ -28,7 +28,7 @@ class MigrationTest extends \Codeception\Test\Unit
require_once 'lib/migrations/SchemaVersion.php';
}
- public function tearDown()
+ public function tearDown(): void
{
if ($this->before !== null) {
$GLOBALS['CACHING_ENABLE'] = $this->before;
diff --git a/tests/unit/lib/classes/NavigationTest.php b/tests/unit/lib/classes/NavigationTest.php
index fdd5d68..a90e386 100644
--- a/tests/unit/lib/classes/NavigationTest.php
+++ b/tests/unit/lib/classes/NavigationTest.php
@@ -14,7 +14,7 @@ require_once 'lib/navigation/Navigation.php';
class NavigationTest extends \Codeception\Test\Unit
{
- public function setUp ()
+ public function setUp(): void
{
Navigation::setRootNavigation(new Navigation(''));
}
diff --git a/tests/unit/lib/classes/NotificationCenterTest.php b/tests/unit/lib/classes/NotificationCenterTest.php
index 83d0cbb..687183e 100644
--- a/tests/unit/lib/classes/NotificationCenterTest.php
+++ b/tests/unit/lib/classes/NotificationCenterTest.php
@@ -33,7 +33,7 @@ class NotificationCenterTestSoundexPredicate
class NotificationCenterTest extends \Codeception\Test\Unit
{
- public function setUp()
+ public function setUp(): void
{
$this->observer = $this->createMock("Observer");
$this->subject = new stdClass();
@@ -50,7 +50,7 @@ class NotificationCenterTest extends \Codeception\Test\Unit
NotificationCenter::addObserver($this->observer, 'update', 'Namespaced\\SormDidUpdate', $this->subject);
}
- public function tearDown()
+ public function tearDown(): void
{
NotificationCenter::removeObserver($this->observer);
}
diff --git a/tests/unit/lib/classes/ObjectBuilderTest.php b/tests/unit/lib/classes/ObjectBuilderTest.php
index 91c2422..1f840ea 100644
--- a/tests/unit/lib/classes/ObjectBuilderTest.php
+++ b/tests/unit/lib/classes/ObjectBuilderTest.php
@@ -14,7 +14,7 @@ class ObjectBuilderTest extends \Codeception\Test\Unit
protected $another_object;
protected $another_changed_object;
- public function setUp ()
+ public function setUp (): void
{
require_once 'lib/functions.php';
require_once 'lib/classes/ObjectBuilder.php';
@@ -82,21 +82,17 @@ class ObjectBuilderTest extends \Codeception\Test\Unit
);
}
- /**
- * @expectedException UnexpectedValueException
- */
public function testExceptionOnExpectedType()
{
+ $this->expectException(\UnexpectedValueException::class);
$this->assertInstanceOf('ObjectBuilderTestMock', ObjectBuilder::build([
ObjectBuilder::OBJECT_IDENTIFIER => 'AnotherObjectBuilderTestMock',
], 'FooBar'));
}
- /**
- * @expectedException InvalidArgumentException
- */
public function testExceptionOnNull()
{
+ $this->expectException(\InvalidArgumentException::class);
ObjectBuilder::build(null);
}
@@ -151,11 +147,9 @@ class ObjectBuilderTest extends \Codeception\Test\Unit
));
}
- /**
- * @expectedException InvalidArgumentException
- */
public function testInvalidJsonInput()
{
+ $this->expectException(\InvalidArgumentException::class);
ObjectBuilder::build(
json_encode($this->simple_array_definition) . 'brokenJSON'
);
@@ -238,7 +232,7 @@ class ObjectBuilderTest extends \Codeception\Test\Unit
$this->another_simple_array_definition,
]);
- $this->assertInternalType('array', $restored);
+ $this->assertIsArray($restored);
$this->assertCount(2, $restored);
$this->assertInstanceOf('ObjectBuilderTestMock', $restored[0]);
@@ -282,4 +276,3 @@ class AnotherObjectBuilderTestMock extends ObjectBuilderTestMock
$this->woken_up = true;
}
}
-
diff --git a/tests/unit/lib/classes/PluginRepositoryTest.php b/tests/unit/lib/classes/PluginRepositoryTest.php
index aa7366f..d1f0f08 100644
--- a/tests/unit/lib/classes/PluginRepositoryTest.php
+++ b/tests/unit/lib/classes/PluginRepositoryTest.php
@@ -14,7 +14,7 @@ require_once 'lib/plugins/engine/PluginRepository.class.php';
class PluginRepositoryTest extends \Codeception\Test\Unit
{
- public function setUp ()
+ public function setUp (): void
{
$GLOBALS['SOFTWARE_VERSION'] = '1.9.0';
$GLOBALS['CACHING_ENABLE'] = false;
diff --git a/tests/unit/lib/classes/RequestTest.php b/tests/unit/lib/classes/RequestTest.php
index 5f84508..eb4e813 100644
--- a/tests/unit/lib/classes/RequestTest.php
+++ b/tests/unit/lib/classes/RequestTest.php
@@ -12,7 +12,7 @@
class RequestTest extends \Codeception\Test\Unit
{
- public function setUp ()
+ public function setUp (): void
{
$_GET['a'] = 'test';
$_POST['b'] = '\\h1"';
@@ -208,7 +208,7 @@ class RequestTest extends \Codeception\Test\Unit
$this->assertTrue(Request::submittedSome('null', 's', 'v'));
}
- public function tearDown()
+ public function tearDown(): void
{
Config::set(null);
}
@@ -216,7 +216,7 @@ class RequestTest extends \Codeception\Test\Unit
class RequestMethodTest extends \Codeception\Test\Unit
{
- public function setUp ()
+ public function setUp (): void
{
unset($_SERVER['REQUEST_METHOD']);
unset($_SERVER['HTTP_X_REQUESTED_WITH']);
diff --git a/tests/unit/lib/classes/SimpleCollectionTest.php b/tests/unit/lib/classes/SimpleCollectionTest.php
index 1d236e1..e390157 100644
--- a/tests/unit/lib/classes/SimpleCollectionTest.php
+++ b/tests/unit/lib/classes/SimpleCollectionTest.php
@@ -251,11 +251,11 @@ class SimpleCollectionTest extends \Codeception\Test\Unit
/**
* @depends testConstruct
- * @expectedException InvalidArgumentException
- * @expectedExceptionMessage unknown operator: foo
*/
public function testInvalidCompOperatorException($a)
{
+ $this->expectException(\InvalidArgumentException::class);
+ $this->expectExceptionMessage('unknown operator: foo');
SimpleCollection::getCompFunc('foo', null);
}
diff --git a/tests/unit/lib/classes/SimpleOrMapNodbTest.php b/tests/unit/lib/classes/SimpleOrMapNodbTest.php
index 3740357..f6b4e0b 100644
--- a/tests/unit/lib/classes/SimpleOrMapNodbTest.php
+++ b/tests/unit/lib/classes/SimpleOrMapNodbTest.php
@@ -46,12 +46,12 @@ class auth_user_md5 extends SimpleORMap
class SimpleOrMapNodbTest extends \Codeception\Test\Unit
{
- function setUp()
+ function setUp(): void
{
StudipTestHelper::set_up_tables(['auth_user_md5']);
}
- function tearDown()
+ function tearDown(): void
{
StudipTestHelper::tear_down_tables();
}
@@ -229,11 +229,11 @@ class SimpleOrMapNodbTest extends \Codeception\Test\Unit
/**
* @depends testConstruct
- * @expectedException InvalidArgumentException
- * @expectedExceptionMessage unknown not found.
*/
public function testInvalidColumnException($a)
{
+ $this->expectException(\InvalidArgumentException::class);
+ $this->expectExceptionMessage('unknown not found.');
$a->unknown = 1;
}
diff --git a/tests/unit/lib/classes/StringManipulationTest.php b/tests/unit/lib/classes/StringManipulationTest.php
index e0a3eaa..cce5513 100644
--- a/tests/unit/lib/classes/StringManipulationTest.php
+++ b/tests/unit/lib/classes/StringManipulationTest.php
@@ -2,11 +2,11 @@
class StringManipulationTest extends \Codeception\Test\Unit
{
- public function setUp()
+ public function setUp(): void
{
require_once 'lib/functions.php';
}
-
+
/**
* @dataProvider camelCaseProvider
*/
diff --git a/tests/unit/lib/classes/StudipCachedArrayTest.php b/tests/unit/lib/classes/StudipCachedArrayTest.php
index f3db15f..24018af 100644
--- a/tests/unit/lib/classes/StudipCachedArrayTest.php
+++ b/tests/unit/lib/classes/StudipCachedArrayTest.php
@@ -13,7 +13,7 @@ class StudipCachedArrayTest extends \Codeception\Test\Unit
{
private $cache;
- public function setUp()
+ public function setUp(): void
{
$this->cache = new TestCache();
}
diff --git a/tests/unit/lib/classes/StudipFileloaderTest.php b/tests/unit/lib/classes/StudipFileloaderTest.php
index 380df10..ec45793 100644
--- a/tests/unit/lib/classes/StudipFileloaderTest.php
+++ b/tests/unit/lib/classes/StudipFileloaderTest.php
@@ -10,7 +10,7 @@
class StudipFileloaderTestCase extends \Codeception\Test\Unit {
- public function setUp() {
+ public function setUp(): void {
ArrayFileStream::set_filesystem(
[
'pathto' => [
@@ -23,7 +23,7 @@ class StudipFileloaderTestCase extends \Codeception\Test\Unit {
}
}
- public function tearDown() {
+ public function tearDown(): void {
stream_wrapper_unregister("var");
}
diff --git a/tests/unit/lib/classes/StudipFormatTest.php b/tests/unit/lib/classes/StudipFormatTest.php
index bfc5367..2a7ca4a 100644
--- a/tests/unit/lib/classes/StudipFormatTest.php
+++ b/tests/unit/lib/classes/StudipFormatTest.php
@@ -19,11 +19,11 @@ function markupBold($markup, $matches, $contents)
class StudipFormatTest extends \Codeception\Test\Unit
{
- function setUp() {
+ function setUp(): void {
$this->old_rules = StudipCoreFormat::getStudipMarkups();
}
- function tearDown()
+ function tearDown(): void
{
foreach(StudipCoreFormat::getStudipMarkups() as $key => $value) {
StudipCoreFormat::removeStudipMarkup($key);
diff --git a/tests/unit/lib/classes/StudipPdoTest.php b/tests/unit/lib/classes/StudipPdoTest.php
index 5c14d55..2023ca1 100644
--- a/tests/unit/lib/classes/StudipPdoTest.php
+++ b/tests/unit/lib/classes/StudipPdoTest.php
@@ -12,22 +12,31 @@
* @category Stud.IP
*/
-class TestStudipPDO extends StudipPDO
+class StudipPdoTest extends \Codeception\Test\Unit
{
- public static function doReplaceStrings($statement)
+ public function setUp(): void
{
- return parent::replaceStrings($statement);
+ $this->testPdo = new class ('sqlite::memory:') extends StudipPDO {
+ public static function doReplaceStrings($statement)
+ {
+ return parent::replaceStrings($statement);
+ }
+ };
+
+ $this->testPdo->beginTransaction();
+ }
+
+ public function tearDown(): void
+ {
+ $this->testPdo->rollBack();
}
-}
-class StudipPDOTest extends \Codeception\Test\Unit
-{
public function testSimpleString()
{
$query = 'SELECT * FROM bar';
$expect = $query;
- $this->assertEquals($expect, TestStudipPDO::doReplaceStrings($query));
+ $this->assertEquals($expect, $this->testPdo::doReplaceStrings($query));
}
public function testDoubleQuotedString()
@@ -35,12 +44,12 @@ class StudipPDOTest extends \Codeception\Test\Unit
$query = 'SELECT "\'foo""\\"" FROM bar WHERE foo = "\\\\"';
$expect = 'SELECT ? FROM bar WHERE foo = ?';
- $this->assertEquals($expect, TestStudipPDO::doReplaceStrings($query));
+ $this->assertEquals($expect, $this->testPdo::doReplaceStrings($query));
$query = str_repeat($query, 100);
$expect = str_repeat($expect, 100);
- $this->assertEquals($expect, TestStudipPDO::doReplaceStrings($query));
+ $this->assertEquals($expect, $this->testPdo::doReplaceStrings($query));
}
public function testSingleQuotedString()
@@ -48,12 +57,12 @@ class StudipPDOTest extends \Codeception\Test\Unit
$query = 'SELECT \'"foo\'\'\\\'\' FROM bar WHERE foo = \'\\\\\'';
$expect = 'SELECT ? FROM bar WHERE foo = ?';
- $this->assertEquals($expect, TestStudipPDO::doReplaceStrings($query));
+ $this->assertEquals($expect, $this->testPdo::doReplaceStrings($query));
$query = str_repeat($query, 100);
$expect = str_repeat($expect, 100);
- $this->assertEquals($expect, TestStudipPDO::doReplaceStrings($query));
+ $this->assertEquals($expect, $this->testPdo::doReplaceStrings($query));
}
public function testMixedQuotedString()
@@ -61,12 +70,12 @@ class StudipPDOTest extends \Codeception\Test\Unit
$query = 'SELECT """\'", \'"\' FROM bar WHERE foo IN (\'\'\'"\'"")';
$expect = 'SELECT ?, ? FROM bar WHERE foo IN (??)';
- $this->assertEquals($expect, TestStudipPDO::doReplaceStrings($query));
+ $this->assertEquals($expect, $this->testPdo::doReplaceStrings($query));
$query = str_repeat($query, 100);
$expect = str_repeat($expect, 100);
- $this->assertEquals($expect, TestStudipPDO::doReplaceStrings($query));
+ $this->assertEquals($expect, $this->testPdo::doReplaceStrings($query));
}
public function testUnterminatedSingleQuote()
@@ -74,7 +83,7 @@ class StudipPDOTest extends \Codeception\Test\Unit
$query = 'SELECT \'1\' ORDER BY \'au.username asc';
$expect = 'SELECT ? ORDER BY \'au.username asc';
- $this->assertEquals($expect, TestStudipPDO::doReplaceStrings($query));
+ $this->assertEquals($expect, $this->testPdo::doReplaceStrings($query));
}
public function testUnterminatedDoubleQuote()
@@ -82,6 +91,6 @@ class StudipPDOTest extends \Codeception\Test\Unit
$query = 'SELECT "1" ORDER BY "au.username asc';
$expect = 'SELECT ? ORDER BY "au.username asc';
- $this->assertEquals($expect, TestStudipPDO::doReplaceStrings($query));
+ $this->assertEquals($expect, $this->testPdo::doReplaceStrings($query));
}
}
diff --git a/tests/unit/lib/classes/StudipVersionTest.php b/tests/unit/lib/classes/StudipVersionTest.php
index 22a9fca..4e824bc 100644
--- a/tests/unit/lib/classes/StudipVersionTest.php
+++ b/tests/unit/lib/classes/StudipVersionTest.php
@@ -14,11 +14,11 @@
class StudipVersionTest extends \Codeception\Test\Unit
{
- function setUp() {
+ function setUp(): void {
$this->version = $GLOBALS['SOFTWARE_VERSION'];
}
- function tearDown()
+ function tearDown(): void
{
$GLOBALS['SOFTWARE_VERSION'] = $this->version;
}
diff --git a/tests/unit/lib/classes/TextFormatTest.php b/tests/unit/lib/classes/TextFormatTest.php
index acca74a..7a58bed 100644
--- a/tests/unit/lib/classes/TextFormatTest.php
+++ b/tests/unit/lib/classes/TextFormatTest.php
@@ -191,7 +191,7 @@ function markupSum($markup, $matches)
class TextFormatTest extends \Codeception\Test\Unit
{
- public function setUp()
+ public function setUp(): void
{
$markup = new TextFormat();
diff --git a/tests/unit/lib/classes/UpdateinformationClassTest.php b/tests/unit/lib/classes/UpdateinformationClassTest.php
index ba2c5a1..1745b03 100644
--- a/tests/unit/lib/classes/UpdateinformationClassTest.php
+++ b/tests/unit/lib/classes/UpdateinformationClassTest.php
@@ -13,11 +13,11 @@
class UpdateInformationCase extends \Codeception\Test\Unit
{
- function setUp() {
+ function setUp(): void {
}
- function tearDown() {
+ function tearDown(): void {
}
@@ -26,9 +26,9 @@ class UpdateInformationCase extends \Codeception\Test\Unit
UpdateInformation::setInformation("test.myfunc", $old_data);
UpdateInformation::setInformation("test.myfunc2", "strangedata");
$new_data = UpdateInformation::getInformation();
- $this->assertInternalType("array", $new_data);
- $this->assertInternalType("array", $new_data['test.myfunc']);
- $this->assertInternalType("string", $new_data['test.myfunc2']);
+ $this->assertIsArray($new_data);
+ $this->assertIsArray($new_data['test.myfunc']);
+ $this->assertIsString($new_data['test.myfunc2']);
$this->assertEquals("TestValue", $new_data['test.myfunc']['test']);
$this->assertEquals("strangedata", $new_data['test.myfunc2']);
}
diff --git a/tests/unit/lib/classes/UrlHelperTest.php b/tests/unit/lib/classes/UrlHelperTest.php
index 8683dd4..13661bd 100644
--- a/tests/unit/lib/classes/UrlHelperTest.php
+++ b/tests/unit/lib/classes/UrlHelperTest.php
@@ -12,7 +12,7 @@
class URLHelperTest extends \Codeception\Test\Unit
{
- public function tearDown ()
+ public function tearDown(): void
{
// remove all link params
foreach (URLHelper::getLinkParams() as $param => $value) {
diff --git a/tests/unit/lib/classes/UserDomainTest.php b/tests/unit/lib/classes/UserDomainTest.php
index 2c4b86b..7e74264 100644
--- a/tests/unit/lib/classes/UserDomainTest.php
+++ b/tests/unit/lib/classes/UserDomainTest.php
@@ -8,12 +8,12 @@
class UserDomainTest extends \Codeception\Test\Unit
{
- public function setUp()
+ public function setUp(): void
{
StudipTestHelper::set_up_tables(['userdomains']);
}
- public function tearDown()
+ public function tearDown(): void
{
StudipTestHelper::tear_down_tables();
}
diff --git a/tests/unit/lib/classes/htmlpurifier/HtmlpurifierInjectorClassifylinksTest.php b/tests/unit/lib/classes/htmlpurifier/HtmlpurifierInjectorClassifylinksTest.php
index cbe7e16..b8b0558 100644
--- a/tests/unit/lib/classes/htmlpurifier/HtmlpurifierInjectorClassifylinksTest.php
+++ b/tests/unit/lib/classes/htmlpurifier/HtmlpurifierInjectorClassifylinksTest.php
@@ -27,7 +27,7 @@ require_once 'lib/classes/htmlpurifier/HTMLPurifier_Injector_ClassifyLinks.php';
*/
class HTMLPurifier_Injector_ClassifyLinksTest extends \Codeception\Test\Unit
{
- public function setUp()
+ public function setUp(): void
{
$config = new Config([
'CONVERT_IDNA_URL' => false,
@@ -106,7 +106,7 @@ class HTMLPurifier_Injector_ClassifyLinksTest extends \Codeception\Test\Unit
];
}
- public function tearDown()
+ public function tearDown(): void
{
Config::set(null);
}