Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit d2e67cf

Browse files
Added a couple more assertions
1 parent da5b245 commit d2e67cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/AnemicTrait.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ public function testPropertiesAreCorrectlyDefined()
7575
{
7676
$rc = new ReflectionClass($this->getObjectAndParams()['object']);
7777

78-
foreach ($rc->getProperties() as $property) {
78+
$props = $rc->getProperties();
79+
80+
$this->assertInternalType('array', $props);
81+
82+
foreach ($props as $property) {
7983
$this->assertTrue($property->isPublic());
8084
$this->assertFalse($property->isStatic());
8185
}
@@ -85,6 +89,8 @@ public function testPropertyAccessBehavesCorrectly()
8589
{
8690
extract($this->getObjectAndParams());
8791

92+
$this->assertInternalType('array', $params);
93+
8894
foreach ($params as $key => $value) {
8995
$this->assertSame($value, $object->{$key});
9096
}

0 commit comments

Comments
 (0)