public function testGet() { $this->expectException(Exception::class); $this->expectExceptionMessage('Method not allowed'); $API = new API(); $API->getByUri('none'); }