File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed
tests/phpbu/Cli/Executable/Rsync Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,9 @@ public function toString()
9191 * Magic to string method
9292 *
9393 * @return string
94- * @throws \phpbu\App\Exception
9594 */
9695 public function __toString ()
9796 {
98- if (!$ this ->isValid ()) {
99- throw new Exception ('invalid rsync path ' );
100- }
10197 $ return = '' ;
10298 if (!empty ($ this ->host )) {
10399 // remote user
Original file line number Diff line number Diff line change 1414 */
1515class LocationTest extends \PHPUnit \Framework \TestCase
1616{
17- /**
18- * Tests Rsync::toString
19- */
20- public function testEmptyOnInit ()
21- {
22- $ this ->expectException ('phpbu\App\Exception ' );
23- $ location = new Location ();
24- $ location ->toString ();
25- }
26-
2717 /**
2818 * Tests Rsync::toString
2919 */
You can’t perform that action at this time.
0 commit comments