@@ -515,7 +515,6 @@ public function testConstructorPreconditionCountException()
515515
516516 // And
517517 $ preconditions = new \ReflectionMethod (Piecewise::class, 'constructorPreconditions ' );
518- $ preconditions ->setAccessible (true );
519518
520519 // Then
521520 $ this ->expectException (Exception \BadDataException::class);
@@ -541,7 +540,6 @@ public function testConstructorPreconditionCallableException()
541540
542541 // And
543542 $ preconditions = new \ReflectionMethod (Piecewise::class, 'constructorPreconditions ' );
544- $ preconditions ->setAccessible (true );
545543
546544 // Then
547545 $ this ->expectException (Exception \BadDataException::class);
@@ -560,7 +558,6 @@ public function testCheckAsAndBsExceptionPointNotClosed()
560558
561559 // And
562560 $ checkAsAndBs = new \ReflectionMethod (Piecewise::class, 'checkAsAndBs ' );
563- $ checkAsAndBs ->setAccessible (true );
564561
565562 // Then
566563 $ this ->expectException (Exception \BadDataException::class);
@@ -579,7 +576,6 @@ public function testCheckAsAndBsExceptionIntervalNotIncreasing()
579576
580577 // And
581578 $ checkAsAndBs = new \ReflectionMethod (Piecewise::class, 'checkAsAndBs ' );
582- $ checkAsAndBs ->setAccessible (true );
583579
584580 // Then
585581 $ this ->expectException (Exception \BadDataException::class);
@@ -598,7 +594,6 @@ public function testCheckAsAndBsExceptionTwoIntervalsSharePointNotClosedAtBothEn
598594
599595 // And
600596 $ checkAsAndBs = new \ReflectionMethod (Piecewise::class, 'checkAsAndBs ' );
601- $ checkAsAndBs ->setAccessible (true );
602597
603598 // Then
604599 $ this ->expectException (Exception \BadDataException::class);
@@ -617,7 +612,6 @@ public function testCheckAsAndBsExceptionOverlappingIntervals()
617612
618613 // And
619614 $ checkAsAndBs = new \ReflectionMethod (Piecewise::class, 'checkAsAndBs ' );
620- $ checkAsAndBs ->setAccessible (true );
621615
622616 // Then
623617 $ this ->expectException (Exception \BadDataException::class);
@@ -637,7 +631,6 @@ public function testOpenOpen(bool $aOpen, bool $bOpen, bool $expected)
637631 {
638632 // Given
639633 $ openOpen = new \ReflectionMethod (Piecewise::class, 'openOpen ' );
640- $ openOpen ->setAccessible (true );
641634
642635 // When
643636 $ result = $ openOpen ->invokeArgs ($ this ->piecewise , [$ aOpen , $ bOpen ]);
@@ -667,7 +660,6 @@ public function testOpenClosed(bool $aOpen, bool $bOpen, bool $expected)
667660 {
668661 // Given
669662 $ openOpen = new \ReflectionMethod (Piecewise::class, 'openClosed ' );
670- $ openOpen ->setAccessible (true );
671663
672664 // When
673665 $ result = $ openOpen ->invokeArgs ($ this ->piecewise , [$ aOpen , $ bOpen ]);
@@ -697,7 +689,6 @@ public function testClosedOpen(bool $aOpen, bool $bOpen, bool $expected)
697689 {
698690 // Given
699691 $ openOpen = new \ReflectionMethod (Piecewise::class, 'closedOpen ' );
700- $ openOpen ->setAccessible (true );
701692
702693 $ result = $ openOpen ->invokeArgs ($ this ->piecewise , [$ aOpen , $ bOpen ]);
703694
@@ -726,7 +717,6 @@ public function testClosedClosed(bool $aOpen, bool $bOpen, bool $expected)
726717 {
727718 // Given
728719 $ openOpen = new \ReflectionMethod (Piecewise::class, 'closedClosed ' );
729- $ openOpen ->setAccessible (true );
730720
731721 // When
732722 $ result = $ openOpen ->invokeArgs ($ this ->piecewise , [$ aOpen , $ bOpen ]);
0 commit comments