Exemple #1
0
 public function testCode()
 {
     $method = new Method('public', 'setVisibility', '$visibility', '$this->visibility = $visibility;');
     $method->setCode('$this->visibility = $v;');
     $this->assertSame('$this->visibility = $v;', $method->getCode());
 }