Skip to content

v2.8.0

Latest
Compare
Choose a tag to compare
@msmakouz msmakouz released this 07 May 07:15
6fcd738

What's Changed

  • Added the ability to run tests in scope by @msmakouz in #73
use Spiral\Testing\Attribute\TestScope;
use Spiral\Testing\Tests\TestCase;

final class ExampleTest extends TestCase
{
    #[TestScope('http')]
    public function testIndexAction(): void
    {
        $response = $this->fakeHttp()->get('/');
        $response->assertOk();
    }
}

Full Changelog: 2.7.0...2.8.0