Codeception / Codeception/Verify
expect callableNotToThrow does not modify assertion count
Ouverte
- Langage dominant
- PHP
- Étoiles
- 147
- Forks
- 26
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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);
}
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.