Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Simplified one test
Browse files Browse the repository at this point in the history
  • Loading branch information
castarco committed Jan 26, 2014
1 parent e566cb0 commit c41f73d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/Decimal/DecimalFromIntegerTest.php
Expand Up @@ -8,16 +8,12 @@

class DecimalFromIntegerTest extends PHPUnit_Framework_TestCase
{
/**
* @expectedException Litipk\Exceptions\InvalidArgumentTypeException
* @expectedExceptionMessage $intValue must be of type int
*/
public function testNoInteger()
{
$catched = false;

try {
$n = Decimal::fromInteger(5.1);
} catch (Exception $e) {
$catched = true;
}

$this->assertTrue($catched);
Decimal::fromInteger(5.1);
}
}

0 comments on commit c41f73d

Please sign in to comment.