assertControllerClass does not check FQDN, instead it checks just the same (just the name of the class) as assertControllerName. I know that hypothetically it is possible to have multiple classes in one file, where the both methods can lead to different results, but that is rather an edge case (and bad design).
assertControllerClass checks only the name of the class (not the FQDN).
I propose to have either a dedicated method assertControllerFqdn or refactor the behavior of the assertControllerClass method and check against the FQDN.
assertControllerClass
does not check FQDN, instead it checks just the same (just the name of the class) asassertControllerName
. I know that hypothetically it is possible to have multiple classes in one file, where the both methods can lead to different results, but that is rather an edge case (and bad design).Code to reproduce the issue
Expected results
Actual results
assertControllerClass
checks only the name of the class (not the FQDN).I propose to have either a dedicated method
assertControllerFqdn
or refactor the behavior of theassertControllerClass
method and check against the FQDN.What do you think?