Download the PHP package zfegg/expressive-test without Composer
On this page you can find all versions of the php package zfegg/expressive-test. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package expressive-test
Mezzio (Expressive) handler test
Using test tools like Laravel in Mezzio (Expressive) unit tests.
使用类似Laravel的测试工具在 Mezzio (Expressive) 的单元测试中.
Installation / 安装使用
Install via composer.
Usage / 使用
runApp(...)
in test.
Simple test methods like Laravel
Test support methods
get($uri, $headers = [])
getJson($uri, $headers = [])
post($uri, $data = [], $headers = [])
postJson($uri, $data = [], $headers = [])
put($uri, $data = [], $headers = [])
putJson($uri, $data = [], $headers = [])
patch($uri, $data = [], $headers = [])
patchJson($uri, $data = [], $headers = [])
delete($uri, $data = [], $headers = [])
json($method, $uri, $data = [], $headers = [])
call($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
Response assert methods
assertCookie
assertCookieExpired
assertCookieMissing
assertCookieNotExpired
assertCreated
assertDontSee
assertDontSeeText
assertExactJson
assertForbidden
assertHeader
assertHeaderMissing
assertJson
assertJsonCount
assertJsonMessage
assertJsonMissing
assertJsonMissingExact
assertJsonPath
assertJsonStructure
assertLocation
assertNoContent
assertNotFound
assertOk
assertRedirect
assertSee
assertSeeText
assertStatus
assertSuccessful
assertUnauthorized
PassMiddleware
For pass a middleware. As default it will pass ErrorHandler::class
.
All versions of expressive-test with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
phpunit/phpunit Version >=8.0
mezzio/mezzio Version ^3.0
laminas/laminas-diactoros Version ^3.0
laminas/laminas-servicemanager Version ^3.3 | ^4.0
dflydev/fig-cookies Version ^2.0 | ^3.0
phpunit/phpunit Version >=8.0
mezzio/mezzio Version ^3.0
laminas/laminas-diactoros Version ^3.0
laminas/laminas-servicemanager Version ^3.3 | ^4.0
dflydev/fig-cookies Version ^2.0 | ^3.0
The package zfegg/expressive-test contains the following files
Loading the files please wait ....