#!/usr/bin/env php loadYaml('repo')->gen(1); su('admin'); $svnTest = new svnModelTest(); r($svnTest->diffTest('https://svn.qc.oop.cc/svn/unittest', 1)) && p() && e('sh: 1: svn: not found'); r($svnTest->diffTest('https://svn.qc.oop.cc/svn/unittest', 0)) && p() && e('~~'); r($svnTest->diffTest('https://svn.qc.oop.cc/svn/unittest', -1)) && p() && e('sh: 1: svn: not found'); r($svnTest->diffTest('http://nonexistent.url', 1)) && p() && e('~~'); r($svnTest->diffTest('', 1)) && p() && e('sh: 1: svn: not found'); r($svnTest->diffTest('https://svn.qc.oop.cc/svn/unittest/file%20with%20spaces', 1)) && p() && e('~~'); r($svnTest->diffTest('https://svn.qc.oop.cc/svn/unittest', 999999)) && p() && e('0');