Closed (fixed)
Project:
Components!
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2021 at 11:40 UTC
Updated:
3 May 2021 at 14:43 UTC
Jump to comment: Most recent
Comments
Comment #2
johnalbinComment #3
johnalbinPHP type hinting is preferred over assert() and this only leaves one use parameter needing an assert, the first positional parameter of the template function.
According to https://github.com/sebastianbergmann/phpunit/issues/1897, its impossible to write a test to check if the assert get triggered because if you write a test case to do that, the PHP assert will fail the test even if you are expecting assert to be triggered.
Comment #5
johnalbinComment #6
johnalbinComment #8
johnalbin