public function testExport() { $this->expectException(\Exception::class); $this->expectExceptionMessage('Unable to export statically'); ReflectionMethodAdapter::export('\\stdClass', 'foo'); }