コード例 #1
0
ファイル: FileTest.php プロジェクト: gitilicious/git-client
 public function testGetPath()
 {
     $existentFile = DATA_DIR . '/existing-file.php';
     $file = new File($existentFile);
     $this->assertSame($existentFile, $file->getPath());
 }
コード例 #2
0
ファイル: Repository.php プロジェクト: gitilicious/git-client
 public function add(File $file)
 {
     $this->client->run($this->directory, new PlainArgument('add'), new PlainArgument($file->getPath()));
 }