Skip to content

Commit bf3185f

Browse files
authored
Merge pull request #3 from faissaloux/expectations
`Expectations.php`
2 parents 2a660ee + e254caa commit bf3185f

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

Diff for: src/Autoload.php

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
namespace Faissaloux\PestMath;
6-
7-
use Pest\Expectation;
8-
9-
expect()->extend('toBeDivisibleBy', function (int $divisor): Expectation {
10-
return expect($this->value % $divisor === 0)->toBeTrue();
11-
});
3+
require_once __DIR__.'/Expectations.php';

Diff for: src/Expectations.php

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Faissaloux\PestMath;
6+
7+
use Pest\Expectation;
8+
9+
expect()->extend('toBeDivisibleBy', function (int $divisor): Expectation {
10+
return expect($this->value % $divisor === 0)->toBeTrue();
11+
});

0 commit comments

Comments
 (0)