Sitelet https://github.com/phpredis/phpredis/pull/2509
Skip to content

More unit test utility functions/usage. - #2509

Merged
michael-grunder merged 2 commits into
developfrom
testsuite-key-updates
Jun 18, 2024
Merged

michael-grunder merged 2 commits into
developfrom
testsuite-key-updates

Conversation

@michael-grunder

Copy link
Copy Markdown
Member
  • Add assertKeyEquals and assertKeyEqualsWeak as we test key values hundreds of places in RedisTest.php

  • We are almost always using $this->redis when we want to run an assertion that needs access to the client, so make this argument optional and default to $this->redis.

  • Update a few more assertions to use our new methods.

  • Various minor fixes/tweaks.

* Add `assertKeyEquals` and `assertKeyEqualsWeak` as we test key values
  hundreds of places in `RedisTest.php`

* We are almost always using `$this->redis` when we want to run an
  assertion that needs access to the client, so make this argument
  optional and default to `$this->redis`.

* Update a few more assertions to use our new methods.

* Various minor fixes/tweaks.
@michael-grunder
michael-grunder merged commit b1771de into develop Jun 18, 2024
@michael-grunder
michael-grunder deleted the testsuite-key-updates branch June 18, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant