Skip to content

3.8.0.6152

Compare
Choose a tag to compare
@karim-ouerghemmi-sonarsource karim-ouerghemmi-sonarsource released this 07 Aug 08:38
· 611 commits to master since this release
d53fe2e

New Feature

  • [SONARPHP-984] - Add rule S2699: Tests should include assertions
  • [SONARPHP-986] - Add rule S2187: TestCases should contain tests
  • [SONARPHP-987] - Add rule S5785: PHPUnit assertTrue/assertFalse should be simplified to the corresponding dedicated assertion
  • [SONARPHP-989] - Add rule S3415: Assertion arguments should be passed in the correct order
  • [SONARPHP-990] - Add rule S2701: Literal boolean values should not be used in assertions
  • [SONARPHP-991] - Add rule S5783: Only one method invocation is expected when testing checked exceptions
  • [SONARPHP-992] - Add rule S1607: Tests should not be ignored
  • [SONARPHP-993] - Add rule S5779: Assertion methods should not be used within the try block of a try-catch catching an Exception
  • [SONARPHP-994] - Add rule S5899: Test methods should be discoverable
  • [SONARPHP-995] - Add rule S5863: Assertions should not compare an object to itself
  • [SONARPHP-999] - Add rule S3360: Test class names should end with "Test"
  • [SONARPHP-1006] - Create an abstract PhpUnitCheck class
  • [SONARPHP-1007] - Add rule S5935: Framework-provided functions should be used to test exceptions
  • [SONARPHP-1008] - Add rules S5915: Assertions should not be made at the end of blocks expecting an exception

Improvement