public function testConfigThrowsErrorWithWrongParameter() { $this->setExpectedException('InvalidArgumentException', 'The file fileNotExisting not exists!'); Config::loadFromFile('fileNotExisting'); }