Example #1
0
 /**
  * @dataProvider getVersionDataProvider
  */
 public function testGetVersion($versionCmdOutput, $expectedVersion)
 {
     $this->_cmd->expects($this->once())->method('_execShellCmd')->with($this->stringContains('phpcs'))->will($this->returnValue($versionCmdOutput));
     $this->assertEquals($expectedVersion, $this->_cmd->getVersion());
 }