Esempio n. 1
0
 /**
  * @expectedException Exception
  */
 function testDispatchWrongKey()
 {
     $z = new ZipDeploy();
     $z->createTarget("test")->setKey("hello")->setZipDir("doc");
     $_REQUEST["target"] = "test";
     $_REQUEST["key"] = "wrong";
     $z->dispatch();
 }
Esempio n. 2
0
<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once __DIR__ . "/../../src/php/ZipDeploy.php";
$zipDeploy = new ZipDeploy();
$zipDeploy->createTarget("test");
$zipDeploy->dispatch();