Skip to content

Commit e254caa

Browse files
committed
group expectations in Expectations.php
1 parent 2a660ee commit e254caa

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)