/** * @expectedException \UnexpectedValueException * @expectedExceptionMessage Unable to determine a module */ public function testReadUnknownModule() { $this->_moduleDirResolver->expects($this->once())->method('getModuleName')->will($this->returnValue(null)); $this->_converter->expects($this->never())->method('convert'); $this->_model->read('scope'); }