Skip to content

Commit

Permalink
删除框架测试文件
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed May 4, 2016
1 parent 000bf1d commit 4a656d3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ThinkFramework.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Composer\Package\PackageInterface;
use Composer\Installer\LibraryInstaller;
use Composer\Repository\InstalledRepositoryInterface;

class ThinkFramework extends LibraryInstaller
{
Expand All @@ -27,6 +28,20 @@ public function getInstallPath(PackageInterface $package)
return 'thinkphp';
}

public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
{
parent::install($repo, $package);
//remove tests dir
$this->filesystem->removeDirectory($this->getInstallPath($package) . DIRECTORY_SEPARATOR . 'tests');
}

public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
{
parent::update($repo, $initial, $target);
//remove tests dir
$this->filesystem->removeDirectory($this->getInstallPath($target) . DIRECTORY_SEPARATOR . 'tests');
}

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit 4a656d3

Please sign in to comment.