-
Notifications
You must be signed in to change notification settings - Fork 48
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
Ideas for additional strict rules #7
Comments
I think that BTW: It might be interesting to suggest assertCount and other already implemented rules also for |
Suggestions for specific rules instead of
|
I have more suggestions, and if I could help implement them 😸 :
|
Go for it 😊
On Sat, 30 Dec 2017 at 22:03, Gabriel Caruso ***@***.***> wrote:
I have more suggestions, and if I could help implement them 😸 :
- Suggest assertCount(1, $foo) instead of assertSame(1, sizeof($foo))
- Suggest assertContains('foo', [...]) instead of assertTrue(in_array('foo',
[...]))
- Suggest assertEmpty($foo) instead of assertTrue(empty($foo))
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGZuFsRghGOxp9uhDRItjYVN_z_i1_hks5tFqUDgaJpZM4ROcPW>
.
--
Ondřej Mirtes
|
Here is a list of a ideas that may be implemented in the future:
assertInstanceOf(Foo::class, $a)
instead ofassertTrue($a instanceof Foo)
assertNotInstanceOf(Foo::class, $a)
instead ofassertFalse($a instanceof Foo)
assertArrayHasKey()
instead ofassertTrue(array_key_exists(..))
assertFileExists()
instead ofassertTrue(file_exists($filePath))
The text was updated successfully, but these errors were encountered: