Codeception / Codeception/Verify
expect callableNotToThrow does not modify assertion count
Abierto
- Lenguaje dominante
- PHP
- Estrellas
- 147
- Forks
- 26
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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);
}
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.