• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jenssegers / laravel-rollbar / 152
77%

Build:
DEFAULT BRANCH: master
Ran 13 May 2017 04:14PM UTC
Jobs 2
Files 2
Run time 11s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
152

Pull #85

travis-ci

web-flow
Use rollbar v1.0.1
- bumped rollbar version to v1.0.1
- adapted `RollbarLogHandler` and `RollbarServiceProvider` to reflect rollbar changes
- adapted tests to be green again
- removed several tests because tested class attributes are not publicly accessible any more

```
    public function testPassConfiguration()
    {
        $client = $this->app->make('RollbarNotifier');
        $this->assertEquals($this->access_token, $client->access_token);
    }

    public function testCustomConfiguration()
    {
        $this->app->config->set('services.rollbar.root', '/tmp');
        $this->app->config->set('services.rollbar.included_errno', E_ERROR);
        $this->app->config->set('services.rollbar.environment', 'staging');

        $client = $this->app->make('RollbarNotifier');
        $this->assertEquals('staging', $client->environment);
        $this->assertEquals('/tmp', $client->root);
        $this->assertEquals(E_ERROR, $client->included_errno);
    }

    public function testAutomaticContext()
    {
        $this->app->session->put('foo', 'bar');

        $clientMock = Mockery::mock('RollbarNotifier');
        $clientMock->shouldReceive('report_message')->once()->with('Test log message', 'info', []);

        $handlerMock = Mockery::mock('Jenssegers\Rollbar\RollbarLogHandler', [$clientMock, $this->app]);
        $handlerMock->shouldReceive('log')->passthru();
        $this->app['Jenssegers\Rollbar\RollbarLogHandler'] = $handlerMock;

        $handler = $this->app->make('Jenssegers\Rollbar\RollbarLogHandler');
        $handler->log('info', 'Test log message');

        $this->assertEquals([
            'session' => ['foo' => 'bar'],
            'id'      => $this->app->session->getId(),
        ], $clientMock->person);
    }

    public function testMergedContext()
    {
        $this->app->session->put('foo', 'bar');

        $clientMock = Mockery::mock('RollbarNotifier');
        $clientMock->shouldReceive('report_message')->once()->with('Test log ... (continued)
Pull Request #85: Use rollbar v1.0.1

39 of 53 relevant lines covered (73.58%)

6.53 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/RollbarLogHandler.php
10
100.0
src/RollbarServiceProvider.php
Jobs
ID Job ID Ran Files Coverage
1 152.1 13 May 2017 04:14PM UTC 0
73.58
Travis Job 152.1
2 152.2 13 May 2017 04:14PM UTC 0
73.58
Travis Job 152.2
Source Files on build 152
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #152
  • Pull Request #85
  • PR Base - master (#146)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc