2016-01-21 22 views
1

我有$entity_type->isSubClassOf('Drupal\Core\Entity\FieldableEntityInterface')->willReturn(TRUE);和得到這個非常莫名其妙的錯誤:PHP預言之謎

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")) 

回答