This script:
```
#!/usr/bin/env php
<?php
require_once('/home/avivey/devtools/arcanist/scripts/__init_script__.php');
$valid_inputs = array(
'foo',
null,
new PhutilURI('http://0@domain.com/'),
);
$invalid_inputs = array(
9,
new Filesystem(),
array(),
);
echo "Valid inputs: \n";
foreach ($valid_inputs as $v) {
echo("Checking ".gettype($v)." \n");
PhutilURI::checkHrefType($v);
}
echo "\nError inputs: \n";
foreach ($invalid_inputs as $v) {
echo("Checking ".gettype($v)." \n");
PhutilURI::checkHrefType($v);
}
echo "\n";
```