コード例 #1
0
 public function testGetters()
 {
     $package = new Package(static::$name);
     $package->setAuthor(static::$author);
     self::assertContains($package->getAuthor(), $package->getCopyright());
     self::assertContains(date('Y'), $package->getCopyright());
     self::assertEquals('1.0.0', $package->getVersion());
     self::assertEquals('pkg_' . Helper::toSystemName(static::$name) . '-1.0.0.zip', $package->getPkgFileName());
 }
コード例 #2
0
 /**
  * @param string $method
  *
  * @return Package
  */
 public function setMethod($method)
 {
     $this->method = Helper::toSystemName($method);
     return $this;
 }