regenerate docs/AllRectorsOverview.md

This commit is contained in:
Tomas Votruba 2018-04-29 11:23:52 +02:00
parent b49f865bba
commit 63e7b70681

View File

@ -574,10 +574,16 @@ Turns preg_match() comparisons to their method name alternatives in PHPUnit Test
Takes setExpectedException() 2nd and next arguments to own methods in PHPUnit.
```diff
-$this->setExpectedException(Exception::class, "Message", "CODE");
+$this->setExpectedException(Exception::class);
+$this->expectExceptionMessage("Message");
+$this->expectExceptionCode("CODE");
-/**
- * @expectedException Exception
- * @expectedExceptionMessage Message
- */
public function test()
{
+ $this->expectException('Exception');
+ $this->expectExceptionMessage('Message');
// tested code
}
```