mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
24 lines
621 B
PHP
24 lines
621 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
beforeEach()->assertTrue(true);
|
|
|
|
it('proxies calls to object')->assertTrue(true);
|
|
|
|
it('is capable doing multiple assertions')
|
|
->assertTrue(true)
|
|
->assertFalse(false);
|
|
|
|
it('can tap into the test')
|
|
->expect('foo')->toBeString()->toBe('foo')
|
|
->tap(function () { expect($this)->toBeInstanceOf(TestCase::class); })
|
|
->and('hello world')->toBeString();
|
|
|
|
it('can use the returned instance from a tap')
|
|
->expect('foo')->toBeString()->toBe('foo')
|
|
->tap(function () { return expect($this); })
|
|
->toBeInstanceOf(TestCase::class);
|
|
|
|
afterEach()->assertTrue(true);
|