Codeception / Codeception/Verify

expect callableNotToThrow does not modify assertion count

オープン
#56 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。