File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public function toConsole(): static
117117 return $ this ;
118118 }
119119
120- public function assert (): AssertService
120+ public function toAssert (): AssertService
121121 {
122122 return new AssertService (
123123 $ this ->toData ()
Original file line number Diff line number Diff line change 44
55test ('success ' , function () {
66 benchmark ()
7- ->assert ()
7+ ->toAssert ()
88 ->toBeAvgMemory (1 , 10000 );
99
1010 expect (true )->toBeTrue ();
1111});
1212
1313test ('success without arguments ' , function () {
1414 benchmark ()
15- ->assert ()
15+ ->toAssert ()
1616 ->toBeAvgMemory ();
1717
1818 expect (true )->toBeTrue ();
1919});
2020
2121test ('failure greater than ' , function () {
2222 benchmark ()
23- ->assert ()
23+ ->toAssert ()
2424 ->toBeAvgMemory (from: 10000 );
2525})->throws (AssertionError::class, 'The average memory value must be greater than or equal to 10000. ' );
2626
2727test ('failure less than ' , function () {
2828 benchmark ()
29- ->assert ()
29+ ->toAssert ()
3030 ->toBeAvgMemory (till: 1 );
3131})->throws (AssertionError::class, 'The average memory value must be less than or equal to 1. ' );
Original file line number Diff line number Diff line change 44
55test ('success ' , function () {
66 benchmark ()
7- ->assert ()
7+ ->toAssert ()
88 ->toBeAvgTime (1 , 1000 );
99
1010 expect (true )->toBeTrue ();
1111});
1212
1313test ('success without arguments ' , function () {
1414 benchmark ()
15- ->assert ()
15+ ->toAssert ()
1616 ->toBeAvgTime ();
1717
1818 expect (true )->toBeTrue ();
1919});
2020
2121test ('failure greater than ' , function () {
2222 benchmark ()
23- ->assert ()
23+ ->toAssert ()
2424 ->toBeAvgTime (from: 1000 );
2525})->throws (AssertionError::class, 'The average time value must be greater than or equal to 1000. ' );
2626
2727test ('failure less than ' , function () {
2828 benchmark ()
29- ->assert ()
29+ ->toAssert ()
3030 ->toBeAvgTime (till: 1 );
3131})->throws (AssertionError::class, 'The average time value must be less than or equal to 1. ' );
Original file line number Diff line number Diff line change 44
55test ('success ' , function () {
66 benchmark ()
7- ->assert ()
7+ ->toAssert ()
88 ->toBeMaxMemory (1 , 10000 );
99
1010 expect (true )->toBeTrue ();
1111});
1212
1313test ('success without arguments ' , function () {
1414 benchmark ()
15- ->assert ()
15+ ->toAssert ()
1616 ->toBeMaxMemory ();
1717
1818 expect (true )->toBeTrue ();
1919});
2020
2121test ('failure greater than ' , function () {
2222 benchmark ()
23- ->assert ()
23+ ->toAssert ()
2424 ->toBeMaxMemory (from: 10000 );
2525})->throws (AssertionError::class, 'The maximum memory value must be greater than or equal to 10000. ' );
2626
2727test ('failure less than ' , function () {
2828 benchmark ()
29- ->assert ()
29+ ->toAssert ()
3030 ->toBeMaxMemory (till: 1 );
3131})->throws (AssertionError::class, 'The maximum memory value must be less than or equal to 1. ' );
Original file line number Diff line number Diff line change 44
55test ('success ' , function () {
66 benchmark ()
7- ->assert ()
7+ ->toAssert ()
88 ->toBeMaxTime (1 , 1000 );
99
1010 expect (true )->toBeTrue ();
1111});
1212
1313test ('success without arguments ' , function () {
1414 benchmark ()
15- ->assert ()
15+ ->toAssert ()
1616 ->toBeMaxTime ();
1717
1818 expect (true )->toBeTrue ();
1919});
2020
2121test ('failure greater than ' , function () {
2222 benchmark ()
23- ->assert ()
23+ ->toAssert ()
2424 ->toBeMaxTime (from: 1000 );
2525})->throws (AssertionError::class, 'The maximum time value must be greater than or equal to 1000. ' );
2626
2727test ('failure less than ' , function () {
2828 benchmark ()
29- ->assert ()
29+ ->toAssert ()
3030 ->toBeMaxTime (till: 1 );
3131})->throws (AssertionError::class, 'The maximum time value must be less than or equal to 1. ' );
Original file line number Diff line number Diff line change 44
55test ('success ' , function () {
66 benchmark ()
7- ->assert ()
7+ ->toAssert ()
88 ->toBeMinMemory (1 , 10000 );
99
1010 expect (true )->toBeTrue ();
1111});
1212
1313test ('success without arguments ' , function () {
1414 benchmark ()
15- ->assert ()
15+ ->toAssert ()
1616 ->toBeMinMemory ();
1717
1818 expect (true )->toBeTrue ();
1919});
2020
2121test ('failure greater than ' , function () {
2222 benchmark ()
23- ->assert ()
23+ ->toAssert ()
2424 ->toBeMinMemory (from: 10000 );
2525})->throws (AssertionError::class, 'The minimum memory value must be greater than or equal to 10000. ' );
2626
2727test ('failure less than ' , function () {
2828 benchmark ()
29- ->assert ()
29+ ->toAssert ()
3030 ->toBeMinMemory (till: 1 );
3131})->throws (AssertionError::class, 'The minimum memory value must be less than or equal to 1. ' );
Original file line number Diff line number Diff line change 44
55test ('success ' , function () {
66 benchmark ()
7- ->assert ()
7+ ->toAssert ()
88 ->toBeMinTime (1 , 1000 );
99
1010 expect (true )->toBeTrue ();
1111});
1212
1313test ('success without arguments ' , function () {
1414 benchmark ()
15- ->assert ()
15+ ->toAssert ()
1616 ->toBeMinTime ();
1717
1818 expect (true )->toBeTrue ();
1919});
2020
2121test ('failure greater than ' , function () {
2222 benchmark ()
23- ->assert ()
23+ ->toAssert ()
2424 ->toBeMinTime (from: 1000 );
2525})->throws (AssertionError::class, 'The minimum time value must be greater than or equal to 1000. ' );
2626
2727test ('failure less than ' , function () {
2828 benchmark ()
29- ->assert ()
29+ ->toAssert ()
3030 ->toBeMinTime (till: 1 );
3131})->throws (AssertionError::class, 'The minimum time value must be less than or equal to 1. ' );
Original file line number Diff line number Diff line change 44
55test ('success ' , function () {
66 benchmark ()
7- ->assert ()
7+ ->toAssert ()
88 ->toBeTotalMemory (1 , 10000 );
99
1010 expect (true )->toBeTrue ();
1111});
1212
1313test ('success without arguments ' , function () {
1414 benchmark ()
15- ->assert ()
15+ ->toAssert ()
1616 ->toBeTotalMemory ();
1717
1818 expect (true )->toBeTrue ();
1919});
2020
2121test ('failure greater than ' , function () {
2222 benchmark ()
23- ->assert ()
23+ ->toAssert ()
2424 ->toBeTotalMemory (from: 10000 );
2525})->throws (AssertionError::class, 'The total memory value must be greater than or equal to 10000. ' );
2626
2727test ('failure less than ' , function () {
2828 benchmark ()
29- ->assert ()
29+ ->toAssert ()
3030 ->toBeTotalMemory (till: 10 );
3131})->throws (AssertionError::class, 'The total memory value must be less than or equal to 10. ' );
Original file line number Diff line number Diff line change 44
55test ('success ' , function () {
66 benchmark ()
7- ->assert ()
7+ ->toAssert ()
88 ->toBeTotalTime (1 , 1000 );
99
1010 expect (true )->toBeTrue ();
1111});
1212
1313test ('success without arguments ' , function () {
1414 benchmark ()
15- ->assert ()
15+ ->toAssert ()
1616 ->toBeTotalTime ();
1717
1818 expect (true )->toBeTrue ();
1919});
2020
2121test ('failure greater than ' , function () {
2222 benchmark ()
23- ->assert ()
23+ ->toAssert ()
2424 ->toBeTotalTime (from: 1000 );
2525})->throws (AssertionError::class, 'The total time value must be greater than or equal to 1000. ' );
2626
2727test ('failure less than ' , function () {
2828 benchmark ()
29- ->assert ()
29+ ->toAssert ()
3030 ->toBeTotalTime (till: 10 );
3131})->throws (AssertionError::class, 'The total time value must be less than or equal to 10. ' );
You can’t perform that action at this time.
0 commit comments