8 use PHP_CodeSniffer\Runner;
34 $this->_wrapper = $this->createMock(\
Magento\TestFramework\CodingStandard\Tool\
CodeSniffer\Wrapper::class);
35 $this->_tool = new \Magento\TestFramework\CodingStandard\Tool\CodeSniffer(
44 $whiteList = [
'test' . rand(),
'test' . rand()];
45 $extensions = [
'test' . rand(),
'test' . rand()];
47 $expectedCliEmulation = [
48 'files' => $whiteList,
50 'extensions' => $extensions,
51 'warningSeverity' => 0,
55 $this->_tool->setExtensions($extensions);
57 $this->_wrapper->expects($this->once())
58 ->method(
'setSettings')
59 ->with($this->equalTo($expectedCliEmulation));
61 $this->_wrapper->expects($this->once())
64 $this->_tool->run($whiteList);