Exemplo n.º 1
0
 public function testFinal()
 {
     $method = new Method('public', 'setVisibility', '$visibility', '$this->visibility = $visibility;');
     $this->assertFalse($method->isFinal());
     $method->setFinal(true);
     $this->assertTrue($method->isFinal());
 }