github ci

This commit is contained in:
Robin Appelman 2021-03-02 17:58:35 +01:00
commit 80a4edf0ef
9 changed files with 144 additions and 6 deletions

View file

@ -72,6 +72,11 @@ class NotifyHandlerTest extends TestCase {
} catch (RevisionMismatchException $e) {
$this->markTestSkipped("notify not supported with configured smb version");
}
$changes = array_filter($changes, function (Change $change) {
return $change->getPath()[0] !== '.';
});
$process->stop();
$expected = [
new Change(INotifyHandler::NOTIFY_ADDED, 'source.txt'),

View file

@ -9,6 +9,7 @@ namespace Icewind\SMB\Test;
use Icewind\SMB\BasicAuth;
use Icewind\SMB\Exception\AuthenticationException;
use Icewind\SMB\Exception\ConnectionRefusedException;
use Icewind\SMB\Exception\InvalidHostException;
use Icewind\SMB\IShare;
use Icewind\SMB\Options;
@ -83,7 +84,7 @@ class ServerTest extends TestCase {
}
public function testWrongHost() {
$this->expectException(InvalidHostException::class);
$this->expectException(ConnectionRefusedException::class);
$server = new Server(
uniqid(),
new BasicAuth(
@ -99,7 +100,7 @@ class ServerTest extends TestCase {
}
public function testHostEscape() {
$this->expectException(InvalidHostException::class);
$this->expectException(ConnectionRefusedException::class);
$server = new Server(
$this->config->host . ';asd',
new BasicAuth(