Skip to content

Commit

Permalink
Tests added
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayjest committed Jun 4, 2015
1 parent 0a8c1fc commit 76de9de
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tests/Test.php
Expand Up @@ -97,7 +97,7 @@ public function testAssignMixed(PersonStruct $person)
self::assertEquals($email, $person->getEmail());
self::assertEquals($gender, $person->gender);
self::assertFalse(property_exists($person,'someProp'));
self::assertEquals(count($assigned), 2);
self::assertCount(2, $assigned);
return $person;
}

Expand All @@ -108,4 +108,20 @@ public function testConArgs()
self::assertEquals('a!a', $inst->a);
self::assertEquals('b!b', $inst->b);
}

public function testGetSetters()
{
$class = '\Nayjest\Manipulator\Test\Mock\PersonStruct';
$setters = Manipulator::getSetters($class);
self::assertContains('setEmail', $setters);
self::assertCount(1, $setters);
}

public function testGetGetters()
{
$class = '\Nayjest\Manipulator\Test\Mock\PersonStruct';
$getters = Manipulator::getGetters($class);
self::assertContains('getEmail', $getters);
self::assertCount(1, $getters);
}
}

0 comments on commit 76de9de

Please sign in to comment.