Skip to content

Support for full PHPUnit public API #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from Aug 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name":"codeception/lib-asserts",
"description":"Assertion methods used by Codeception core and Asserts module",
"keywords":["codeception"],
"homepage":"http://codeception.com/",
"homepage":"https://codeception.com/",
"type":"library",
"license":"MIT",
"authors":[
Expand All @@ -13,12 +13,17 @@
},
{
"name":"Gintautas Miselis"
},
{
"name":"Gustavo Nieves",
"homepage": "https://medium.com/@ganieves"
}
],
"minimum-stability": "RC",

"require": {
"php": ">=5.6.0 <8.0",
"ext-dom": "*",
"codeception/phpunit-wrapper": ">6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.0.3 | ^9.0"
},
"autoload":{
Expand Down
144 changes: 144 additions & 0 deletions docs/supported_asserts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
# 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
```
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
```
composer require "codeception/lib-asserts"
```
## List of supported asserts

See the full list [here.](docs/supported_asserts.md)
Loading