Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit b8873da

Browse files
committed
add unittest
1 parent d66d63b commit b8873da

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/Generator/ClassGeneratorTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,16 @@ public function testHasProperty()
193193
$this->assertTrue($classGenerator->hasProperty('propertyOne'));
194194
}
195195

196+
public function testRemoveProperty()
197+
{
198+
$classGenerator = new ClassGenerator();
199+
$classGenerator->addProperty('propertyOne');
200+
$this->assertTrue($classGenerator->hasProperty('propertyOne'));
201+
202+
$classGenerator->removeProperty('propertyOne');
203+
$this->assertFalse($classGenerator->hasProperty('propertyOne'));
204+
}
205+
196206
public function testToString()
197207
{
198208
$classGenerator = ClassGenerator::fromArray([

0 commit comments

Comments
 (0)