[英]PHP Prophecy Mystery
I have $entity_type->isSubClassOf('Drupal\\Core\\Entity\\FieldableEntityInterface')->willReturn(TRUE);
我有$entity_type->isSubClassOf('Drupal\\Core\\Entity\\FieldableEntityInterface')->willReturn(TRUE);
and getting this very baffling error: 并得到这个非常令人困惑的错误:
Prophecy\Exception\Call\UnexpectedCallException: Method call:
- isSubclassOf("Drupal\Core\Entity\FieldableEntityInterface")
on Double\EntityTypeInterface\P121 was not expected, expected calls were:
- isSubClassOf(exact("Drupal\Core\Entity\FieldableEntityInterface"))
Careful readers will observe the lower case c vs upper case c after isSub
. 细心的读者会在isSub
之后观察小写c与大写c。 I posted the problem to https://github.com/phpspec/prophecy/issues/249 我将问题发布到https://github.com/phpspec/prophecy/issues/249
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.