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

Commit

Permalink
Added a couple more assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jul 23, 2016
1 parent da5b245 commit d2e67cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/AnemicTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ public function testPropertiesAreCorrectlyDefined()
{
$rc = new ReflectionClass($this->getObjectAndParams()['object']);

foreach ($rc->getProperties() as $property) {
$props = $rc->getProperties();

$this->assertInternalType('array', $props);

foreach ($props as $property) {
$this->assertTrue($property->isPublic());
$this->assertFalse($property->isStatic());
}
Expand All @@ -85,6 +89,8 @@ public function testPropertyAccessBehavesCorrectly()
{
extract($this->getObjectAndParams());

$this->assertInternalType('array', $params);

foreach ($params as $key => $value) {
$this->assertSame($value, $object->{$key});
}
Expand Down

0 comments on commit d2e67cf

Please sign in to comment.