Heard a variation of this at work the other day. Note, I have been both developer and tester in my career and fell into the above trap several times.
For those few of you that smiled at this, I strongly recommend reading the replies to this Tweet. It is hilarious. https://twitter.com/brenankeller/status/1068615953989087232?lang=en