File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public function testEnvironmentOverrides(): void
131
131
// override config with shortPrefix ENV var
132
132
$ this ->assertSame ('hubbahubba ' , $ config ->delta );
133
133
// incorrect env name should not inject property
134
- $ this ->assertFalse ( property_exists ( $ config , 'notthere ' ) );
134
+ $ this ->assertObjectNotHasProperty ( 'notthere ' , $ config );
135
135
// empty ENV var should not affect config setting
136
136
$ this ->assertSame ('pineapple ' , $ config ->fruit );
137
137
// non-empty ENV var should overrideconfig setting
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ public function testCreateMockSetsDatabaseFields(): void
413
413
$ this ->assertIsInt ($ result ->created_at );
414
414
$ this ->assertIsInt ($ result ->updated_at );
415
415
416
- $ this ->assertTrue ( property_exists ( $ result , 'deleted_at ' ) );
416
+ $ this ->assertObjectHasProperty ( 'deleted_at ' , $ result );
417
417
$ this ->assertNull ($ result ->deleted_at );
418
418
}
419
419
You can’t perform that action at this time.
0 commit comments