Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在函数式编程中使用 phpspec?我想在 Drupal 项目中使用它,但找不到任何有用的例子。据我所知,phpspec 只能用于 OO 编程。这是真的吗?谢谢。
我也有同样的需求。我正在考虑将 ObjectBehaviour 克隆为可用于此目的的 FunctionBehaviour 类。