Codeception / Codeception/Verify
expect callableNotToThrow does not modify assertion count
Đang mở
- Ngôn ngữ chính
- PHP
- Star
- 147
- Fork
- 26
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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);
}
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.