public function testExport() { foreach (self::TEST_NAMES as $method) { $export = MethodInspector::export(self::TEST_CLASS, $method); $this->assertRegExp('{Method \\[ <user> (public|protected|private) method [a-zA-Z0-9]+ \\]}', $export); } $this->expectException('SR\\Reflection\\Exception\\InvalidArgumentException'); MethodInspector::export(self::TEST_CLASS, 'thisMethodDoesNotExist'); }