public function testInvalidCall() { $doc = new Document(); $this->assertException("No model bound to call `medicin`.", function () use($doc) { $doc->medicin(); }); }