Skip to content

Commit cb45370

Browse files
committed
add not->toBeDivisible() tests
1 parent fbd1d77 commit cb45370

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: tests/toBeDivisibleBy.php

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
'odd' => [6, 3],
1010
]);
1111

12+
it('passes not', function (): void {
13+
expect(8)->not->toBeDivisibleBy(3);
14+
});
15+
1216
test('failures', function (): void {
1317
expect(8)->toBeDivisibleBy(3);
1418
})->throws(ExpectationFailedException::class);
19+
20+
test('failures not', function (): void {
21+
expect(8)->not->toBeDivisibleBy(2);
22+
})->throws(ExpectationFailedException::class);

0 commit comments

Comments
 (0)