public function testCanDoRecursiveListForASpecificRevision() { // Set the recursive flag $this->command->recursive(); // Set the revision $this->command->rev(2); // Run the update command $ret_val = -1; $output = $this->command->runCommand($ret_val); self::assertSame(0, $ret_val); // Assert output self::assertEqualsMock("svn-list-recursive-r2.txt", $output); }
/** * We update from rev3 to rev2 */ public function testCanUpdateBackwardsInTime() { // Assert that the file is @REV3 self::assertFileEqualsMock("trunk/TestClass.php", 3); // Run the update command $ret_val = -1; // Set the revision $this->command->rev(2); $output = $this->command->runCommand($ret_val); self::assertSame(0, $ret_val); // Assert output self::assertEqualsMock("svn-up-r3-r2.txt", $output); // Assert that the file is @REV2 self::assertFileEqualsMock("trunk/TestClass.php", 2); }