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.
如何在 phpunit 中进行 ===/strict 等于比较?
使用assertSame。它检查类型和值是否相同。
对于对象,这将检查它们是否“引用相同的对象”(对象标识)。