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