예제 #1
0
 public function testSetContent()
 {
     $line = new Line("     * @param \$foo Hi!\n");
     $this->assertSame("     * @param \$foo Hi!\n", $line->getContent());
     $line->addBlank();
     $this->assertSame("     * @param \$foo Hi!\n     *\n", $line->getContent());
     $line->setContent("     * test\n");
     $this->assertSame("     * test\n", $line->getContent());
     $line->remove();
     $this->assertSame('', $line->getContent());
 }