File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -323,9 +323,9 @@ deallocated so that the swizzling is undone.
323
323
324
324
In the example above, ` mockUserDefaultsClass ` will go out scope and be
325
325
destroyed. But what if you kept it in the test fixture, as an ivar or a
326
- property? Due to a bug in XCTest, it won't be implicitly destroyed. You need to
327
- explicitly set it to nil in ` -tearDown ` , or the swizzling will bleed over to
328
- your other tests, compromising their integrity.
326
+ property? According to XCTest's design , it won't be implicitly destroyed.
327
+ You need to explicitly set it to nil in ` -tearDown ` , or the swizzling will
328
+ bleed over to your other tests, compromising their integrity.
329
329
330
330
If you need more control over when the swizzling is undone, call
331
331
` stopMocking(…) ` on the mock class.
You can’t perform that action at this time.
0 commit comments