|
15 | 15 | use Laravel\Lumen\Application; |
16 | 16 |
|
17 | 17 | it('can explode env', function (): void { |
18 | | - expect(env_explode('ENV_EXPLODE_STRING'))->toBeArray()->toBeTruthy(); |
19 | | - expect(env_explode('ENV_EXPLODE_EMPTY'))->toBe(['']); |
20 | | - expect(env_explode('ENV_EXPLODE_NOT_EXIST'))->toBeNull(); |
21 | | - // expect(env_explode('ENV_EXPLODE_TRUE'))->toBeTrue(); |
22 | | - // expect(env_explode('ENV_EXPLODE_FALSE'))->toBeFalse(); |
23 | | - // expect(env_explode('ENV_EXPLODE_NULL'))->toBeNull(); |
| 18 | + expect(env_explode('ENV_EXPLODE_STRING'))->toBeArray()->toBeTruthy() |
| 19 | + ->and(env_explode('ENV_EXPLODE_EMPTY'))->toBe(['']) |
| 20 | + ->and(env_explode('ENV_EXPLODE_NOT_EXIST'))->toBeNull() |
| 21 | + // ->and(env_explode('ENV_EXPLODE_TRUE'))->toBeTrue() |
| 22 | + // ->and(env_explode('ENV_EXPLODE_FALSE'))->toBeFalse() |
| 23 | + // ->and(env_explode('ENV_EXPLODE_NULL'))->toBeNull() |
| 24 | + ; |
24 | 25 | })->group(__DIR__, __FILE__); |
25 | 26 |
|
26 | 27 | it('can return Stringable', function (): void { |
27 | | - expect(str())->toBeInstanceOf(Stringable::class); |
28 | | - expect(str('foo'))->toBeInstanceOf(Illuminate\Support\Stringable::class); |
| 28 | + expect(str())->toBeInstanceOf(Stringable::class) |
| 29 | + ->and(str('foo'))->toBeInstanceOf(Illuminate\Support\Stringable::class); |
29 | 30 | })->group(__DIR__, __FILE__); |
30 | 31 |
|
31 | 32 | it('can is lumen', function (): void { |
32 | | - expect(is_lumen())->toBeFalse(); |
33 | | - expect(is_lumen(app()))->toBeFalse(); |
34 | | - expect(is_lumen(app(Application::class)))->toBeTrue(); |
| 33 | + expect(is_lumen())->toBeFalse() |
| 34 | + ->and(is_lumen(app()))->toBeFalse() |
| 35 | + ->and(is_lumen(app(Application::class)))->toBeTrue(); |
35 | 36 | })->group(__DIR__, __FILE__); |
0 commit comments