/** * @expectedException ilTermsOfServiceNoSignableDocumentFoundException */ public function testExceptionIsRaisedWhenNoSingableDocumentCouldBeFoundForCurrentLanguage() { $document = new ilTermsOfServiceFileSystemDocument($this->getMockBuilder('ilLanguage')->disableOriginalConstructor()->getMock()); $document->setSourceFiles(array()); $document->determine(); }