Skip to content

Commit 0f26987

Browse files
xabbuhnicolas-grekas
authored andcommitted
stop using assertObjectHasAttribute()/assertObjectHasNotAttribute()
1 parent 6df9ebf commit 0f26987

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/ManagerRegistryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public function testResetService()
4444
$registry->resetManager();
4545

4646
$this->assertSame($foo, $container->get('foo'));
47-
$this->assertObjectNotHasAttribute('bar', $foo);
47+
$this->assertInstanceOf(\stdClass::class, $foo);
48+
$this->assertFalse(property_exists($foo, 'bar'));
4849
}
4950

5051
/**

0 commit comments

Comments
 (0)