/** * @expectedException Exception */ function testDispatchWrongKey() { $z = new ZipDeploy(); $z->createTarget("test")->setKey("hello")->setZipDir("doc"); $_REQUEST["target"] = "test"; $_REQUEST["key"] = "wrong"; $z->dispatch(); }
<?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();