public function testGetPatternDirsModular()
 {
     $inputParams = ['param' => 'value', 'module_name' => 'Magento_Core'];
     $expectedResult = new \stdClass();
     $this->ruleNonModular->expects($this->never())->method('getPatternDirs');
     $this->ruleModular->expects($this->once())->method('getPatternDirs')->with($inputParams)->will($this->returnValue($expectedResult));
     $this->assertSame($expectedResult, $this->object->getPatternDirs($inputParams));
 }
 /**
  * @param array $inputParams
  * @dataProvider getPatternDirsExceptionDataProvider
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage Parameters 'namespace' and 'module' should either be both set or unset
  */
 public function testGetPatternDirsException(array $inputParams)
 {
     $this->object->getPatternDirs($inputParams);
 }