Ejemplo n.º 1
0
 public function testCall()
 {
     $object = new AccessorHelper();
     $object->setName('test');
     $object->addValue('test');
     $this->assertEquals('test', $object->getName());
     $this->assertTrue($object->isName());
     $this->assertEquals('test', $object->getValue()[0]);
     $this->assertTrue($object->isValue());
     $object->removeValue('test');
     $this->assertCount(0, $object->getValue());
     $this->assertFalse($object->isValue());
 }