| Use Case | Command | Description |
|---|---|---|
| Assert equality | assert_equal expected, actual | ✅ Check that two values are equal |
| Assert truthiness | assert expression | ✅ Verify that an expression is truthy |
| Assert a block raises an exception | assert_raises(Error) { ... } | ⚠️ Ensure a specific error is raised |
| Assert no exception | assert_nothing_raised { ... } | ✅ Confirm block runs without error |
| Test with a mock object | Mocha::Mock.new | 🎭 Create and verify expectations |
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 16:34 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format