-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #562 from rollbar/fixed_134
Fixed Person ID not cast to string
- Loading branch information
Showing
4 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -762,6 +762,25 @@ public function testPersonFunc() | |
$output = $dataBuilder->makeData(Level::ERROR, "testing", array()); | ||
$this->assertEquals('123', $output->getPerson()->getId()); | ||
} | ||
|
||
public function testPersonIntID() | ||
{ | ||
$dataBuilder = new DataBuilder(array( | ||
'accessToken' => $this->getTestAccessToken(), | ||
'environment' => 'tests', | ||
'person' => array( | ||
'id' => 123, | ||
'username' => 'tester', | ||
'email' => '[email protected]' | ||
), | ||
'levelFactory' => new LevelFactory, | ||
'utilities' => new Utilities | ||
)); | ||
$output = $dataBuilder->makeData(Level::ERROR, "testing", array()); | ||
$this->assertEquals('123', $output->getPerson()->getId()); | ||
$this->assertNull($output->getPerson()->getUsername()); | ||
$this->assertNull($output->getPerson()->getEmail()); | ||
} | ||
|
||
public function testPersonFuncException() | ||
{ | ||
|
@@ -904,7 +923,7 @@ public function testFramesOrder() | |
); | ||
// 900 is the line number where the comment "// A" is found | ||
$this->assertEquals( | ||
900, | ||
919, | ||
$frames[count($frames)-1]->getLineno(), | ||
"Possible false negative: did this file change? Check the line number for line with '// A' comment" | ||
); | ||
|