Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A list of PHPUnit assertions
  • assertArrayHasKey
  • assertArrayNotHasKey
  • assertContains
  • assertAttributeContains
  • assertNotContains
  • assertAttributeNotContains
  • assertContainsOnly
  • assertAttributeContainsOnly
  • assertNotContainsOnly
  • assertAttributeNotContainsOnly
  • assertEquals
  • assertAttributeEquals
  • assertNotEquals
  • assertAttributeNotEquals
  • assertEmpty
  • assertAttributeEmpty
  • assertNotEmpty
  • assertAttributeNotEmpty
  • assertGreaterThan
  • assertAttributeGreaterThan
  • assertGreaterThanOrEqual
  • assertAttributeGreaterThanOrEqual
  • assertLessThan
  • assertAttributeLessThan
  • assertLessThanOrEqual
  • assertAttributeLessThanOrEqual
  • assertFileEquals
  • assertFileNotEquals
  • assertStringEqualsFile
  • assertStringNotEqualsFile
  • assertFileExists
  • assertFileNotExists
  • assertTrue
  • assertFalse
  • assertNotNull
  • assertNull
  • assertClassHasAttribute
  • assertClassNotHasAttribute
  • assertClassHasStaticAttribute
  • assertClassNotHasStaticAttribute
  • assertObjectHasAttribute
  • assertObjectNotHasAttribute
  • assertSame
  • assertAttributeSame
  • assertNotSame
  • assertAttributeNotSame
  • assertInstanceOf
  • assertAttributeInstanceOf
  • assertNotInstanceOf
  • assertAttributeNotInstanceOf
  • assertInternalType
  • assertAttributeInternalType
  • assertNotInternalType
  • assertAttributeNotInternalType
  • assertType
  • assertAttributeType
  • assertNotType
  • assertAttributeNotType
  • assertRegExp
  • assertNotRegExp
  • assertStringMatchesFormat
  • assertStringNotMatchesFormat
  • assertStringMatchesFormatFile
  • assertStringNotMatchesFormatFile
  • assertStringStartsWith
  • assertStringStartsNotWith
  • assertStringEndsWith
  • assertStringEndsNotWith
  • assertXmlFileEqualsXmlFile
  • assertXmlFileNotEqualsXmlFile
  • assertXmlStringEqualsXmlFile
  • assertXmlStringNotEqualsXmlFile
  • assertXmlStringEqualsXmlString
  • assertXmlStringNotEqualsXmlString
  • assertEqualXMLStructure
  • assertSelectCount
  • assertSelectRegExp
  • assertSelectEquals
  • assertTag
  • assertNotTag
  • assertThat
  • logicalAnd
  • logicalOr
  • logicalNot
  • logicalXor
  • anything
  • isTrue
  • isFalse
  • isNull
  • attribute
  • contains
  • containsOnly
  • arrayHasKey
  • equalTo
  • attributeEqualTo
  • isEmpty
  • fileExists
  • greaterThan
  • greaterThanOrEqual
  • classHasAttribute
  • classHasStaticAttribute
  • objectHasAttribute
  • identicalTo
  • isInstanceOf
  • isType
  • lessThan
  • lessThanOrEqual
  • matchesRegularExpression
  • matches
  • stringStartsWith
  • stringContains
  • stringEndsWith
@fabiomontefuscolo

This comment has been minimized.

Copy link

fabiomontefuscolo commented May 15, 2018

Sorted:

  • anything
  • arrayHasKey
  • assertArrayHasKey
  • assertArrayNotHasKey
  • assertAttributeContains
  • assertAttributeContainsOnly
  • assertAttributeEmpty
  • assertAttributeEquals
  • assertAttributeGreaterThan
  • assertAttributeGreaterThanOrEqual
  • assertAttributeInstanceOf
  • assertAttributeInternalType
  • assertAttributeLessThan
  • assertAttributeLessThanOrEqual
  • assertAttributeNotContains
  • assertAttributeNotContainsOnly
  • assertAttributeNotEmpty
  • assertAttributeNotEquals
  • assertAttributeNotInstanceOf
  • assertAttributeNotInternalType
  • assertAttributeNotSame
  • assertAttributeNotType
  • assertAttributeSame
  • assertAttributeType
  • assertClassHasAttribute
  • assertClassHasStaticAttribute
  • assertClassNotHasAttribute
  • assertClassNotHasStaticAttribute
  • assertContains
  • assertContainsOnly
  • assertEmpty
  • assertEquals
  • assertEqualXMLStructure
  • assertFalse
  • assertFileEquals
  • assertFileExists
  • assertFileNotEquals
  • assertFileNotExists
  • assertGreaterThan
  • assertGreaterThanOrEqual
  • assertInstanceOf
  • assertInternalType
  • assertLessThan
  • assertLessThanOrEqual
  • assertNotContains
  • assertNotContainsOnly
  • assertNotEmpty
  • assertNotEquals
  • assertNotInstanceOf
  • assertNotInternalType
  • assertNotNull
  • assertNotRegExp
  • assertNotSame
  • assertNotTag
  • assertNotType
  • assertNull
  • assertObjectHasAttribute
  • assertObjectNotHasAttribute
  • assertRegExp
  • assertSame
  • assertSelectCount
  • assertSelectEquals
  • assertSelectRegExp
  • assertStringEndsNotWith
  • assertStringEndsWith
  • assertStringEqualsFile
  • assertStringMatchesFormat
  • assertStringMatchesFormatFile
  • assertStringNotEqualsFile
  • assertStringNotMatchesFormat
  • assertStringNotMatchesFormatFile
  • assertStringStartsNotWith
  • assertStringStartsWith
  • assertTag
  • assertThat
  • assertTrue
  • assertType
  • assertXmlFileEqualsXmlFile
  • assertXmlFileNotEqualsXmlFile
  • assertXmlStringEqualsXmlFile
  • assertXmlStringEqualsXmlString
  • assertXmlStringNotEqualsXmlFile
  • assertXmlStringNotEqualsXmlString
  • attribute
  • attributeEqualTo
  • classHasAttribute
  • classHasStaticAttribute
  • contains
  • containsOnly
  • equalTo
  • fileExists
  • greaterThan
  • greaterThanOrEqual
  • identicalTo
  • isEmpty
  • isFalse
  • isInstanceOf
  • isNull
  • isTrue
  • isType
  • lessThan
  • lessThanOrEqual
  • logicalAnd
  • logicalNot
  • logicalOr
  • logicalXor
  • matches
  • matchesRegularExpression
  • objectHasAttribute
  • stringContains
  • stringEndsWith
  • stringStartsWith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.