supported_asserts.md 3.0 KB

List of supported asserts

Codeception

assertFileNotExists
assertGreaterOrEquals
assertIsEmpty
assertLessOrEquals
assertNotRegExp
assertRegExp
assertThatItsNot

PHPUnit

assertArrayHasKey
assertArrayNotHasKey
assertClassHasAttribute
assertClassHasStaticAttribute
assertClassNotHasAttribute
assertClassNotHasStaticAttribute
assertContains
assertContainsEquals
assertContainsOnly
assertContainsOnlyInstancesOf
assertCount
assertDirectoryDoesNotExist
assertDirectoryExists
assertDirectoryIsNotReadable
assertDirectoryIsNotWritable
assertDirectoryIsReadable
assertDirectoryIsWritable
assertDoesNotMatchRegularExpression
assertEmpty
assertEquals
assertEqualsCanonicalizing
assertEqualsIgnoringCase
assertEqualsWithDelta
assertFalse
assertFileDoesNotExist
assertFileEquals
assertFileEqualsCanonicalizing
assertFileEqualsIgnoringCase
assertFileExists
assertFileIsNotReadable
assertFileIsNotWritable
assertFileIsReadable
assertFileIsWritable
assertFileNotEquals
assertFileNotEqualsCanonicalizing
assertFileNotEqualsIgnoringCase
assertFinite
assertGreaterThan
assertGreaterThanOrEqual
assertInfinite
assertInstanceOf
assertIsArray
assertIsBool
assertIsCallable
assertIsClosedResource
assertIsFloat
assertIsInt
assertIsIterable
assertIsNotArray
assertIsNotBool
assertIsNotCallable
assertIsNotClosedResource
assertIsNotFloat
assertIsNotInt
assertIsNotIterable
assertIsNotNumeric
assertIsNotObject
assertIsNotReadable
assertIsNotResource
assertIsNotScalar
assertIsNotString
assertIsNotWritable
assertIsNumeric
assertIsObject
assertIsReadable
assertIsResource
assertIsScalar
assertIsString
assertIsWritable
assertJson
assertJsonFileEqualsJsonFile
assertJsonFileNotEqualsJsonFile
assertJsonStringEqualsJsonFile
assertJsonStringEqualsJsonString
assertJsonStringNotEqualsJsonFile
assertJsonStringNotEqualsJsonString
assertLessThan
assertLessThanOrEqual
assertMatchesRegularExpression
assertNan
assertNotContains
assertNotContainsEquals
assertNotContainsOnly
assertNotCount
assertNotEmpty
assertNotEquals
assertNotEqualsCanonicalizing
assertNotEqualsIgnoringCase
assertNotEqualsWithDelta
assertNotFalse
assertNotInstanceOf
assertNotNull
assertNotSame
assertNotSameSize
assertNotTrue
assertNull
assertObjectHasAttribute
assertObjectNotHasAttribute
assertSame
assertSameSize
assertStringContainsString
assertStringContainsStringIgnoringCase
assertStringEndsNotWith
assertStringEndsWith
assertStringEqualsFile
assertStringEqualsFileCanonicalizing
assertStringEqualsFileIgnoringCase
assertStringMatchesFormat
assertStringMatchesFormatFile
assertStringNotContainsString
assertStringNotContainsStringIgnoringCase
assertStringNotEqualsFile
assertStringNotEqualsFileCanonicalizing
assertStringNotEqualsFileIgnoringCase
assertStringNotMatchesFormat
assertStringNotMatchesFormatFile
assertStringStartsNotWith
assertStringStartsWith
assertThat
assertTrue
assertXmlFileEqualsXmlFile
assertXmlFileNotEqualsXmlFile
assertXmlStringEqualsXmlFile
assertXmlStringEqualsXmlString
assertXmlStringNotEqualsXmlFile
assertXmlStringNotEqualsXmlString
fail
markTestIncomplete
markTestSkipped