Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Recca Tsai committed Feb 27, 2017
1 parent a94aa7b commit e03252e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ use Recca0120\LaravelTracy\Tracy;
// before outout
$tracy = Tracy::instance();

$authPanel = $tracy->getPanel('auth');
$authPanel->setUserResolver(function() {
return [
'email' => '[email protected]'
];
});

function sql($sql)
{
$tracy = Tracy::instance();
Expand Down
5 changes: 0 additions & 5 deletions tests/TracyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,5 @@ public function testInstance()
});

$this->assertTrue(is_string($authPanel->getPanel()));

ob_start();
$tracy->dump(123);

$this->assertTrue(is_string(ob_get_clean()));
}
}

0 comments on commit e03252e

Please sign in to comment.