Fix UnitTests

Split ResolveResult from Resolve.php
Split up Device.php

Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
This commit is contained in:
Diederik de Groot
2020-03-22 14:06:33 +01:00
parent 5064cb3e36
commit 729dccb7f8
20 changed files with 376 additions and 241 deletions

16
lib/ResolveResult.php Normal file
View File

@@ -0,0 +1,16 @@
<?php declare(strict_types=1);
namespace PROVISION;
//abstract class ResolveResult extends \SplEnum {
abstract class ResolveResult {
const Ok = 0;
const EmptyRequest = 1;
const RequestNotAString = 2;
const RequestContainsInvalidChar = 3;
const RequestContainsPathWalk = 4;
const FileNotFound = 5;
const InvalidFilename = 6;
const InvalidPath = 7;
}
?>