Flugg\Responder\Tests\Unit\SuccessResponseBuilderTest::transformMethodShouldReturnItself PHP Method

transformMethodShouldReturnItself() public method

Test that the [transform] method returns the response builder, allowing for fluent method chaining.
    public function transformMethodShouldReturnItself()
    {
        // Arrange...
        $responseBuilder = $this->app->make('responder.success');
        // Act...
        $result = $responseBuilder->transform();
        // Assert...
        $this->assertSame($responseBuilder, $result);
    }
SuccessResponseBuilderTest