Codeception / Codeception/Verify
expect callableNotToThrow does not modify assertion count
オープン
- 主要言語
- PHP
- スター
- 147
- フォーク
- 26
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When testing that an exception is not thrown, the assertion count is not raised. This is true for both variants on the latest 2.2 release:
```php
verify($callable)->callableDoesNotThrow(\Exception::class);
expect($callable)->callableNotToThrow(\Exception::class);
```
Here is a sample test:
```php
public function testCallableDoesNotThrow()
{
$testFunction = function() {};
expect($testFunction)->callableNotToThrow(\Exception::class);
}
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。