/** * @test * @dataProvider repoUrlProvider */ public function gets_information_about_the_remote($url, array $expectedInfo) { $this->processHelper->expects($this->atLeastOnce())->method('runCommand')->with($this->equalTo('git config --local --get remote.origin.url'))->will($this->returnValue($url)); $this->assertEquals($expectedInfo, $this->gitConfigHelper->getRemoteInfo('origin')); }