/**
  * @covers ::fromString
  * @dataProvider provideStringsToTest
  */
 public function testCanConvertStrings($data, $expectedResult)
 {
     // ----------------------------------------------------------------
     // setup your test
     // ----------------------------------------------------------------
     // perform the change
     $actualResult = ConvertToString::from($data);
     // ----------------------------------------------------------------
     // test the results
     $this->assertEquals($expectedResult, $actualResult);
 }
 /**
  * @param mixed $repoDir
  *        the folder that was rejected
  */
 public function __construct($repoDir)
 {
     $msg = "'" . ConvertToString::from($repoDir) . "' is not a valid Git repo root folder";
     parent::__construct(400, $msg);
 }