Completed
Pull Request — master (#51)
by
unknown
08:53
created

testFiniteNegativeInfiniteTan()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
use Litipk\BigNumbers\InfiniteDecimal as InfiniteDecimal;
4
5
/**
6
 * @group cos
7
 */
8
class InfiniteDecimalTanTest extends PHPUnit_Framework_TestCase
9
{
10
    /**
11
     * @expectedException \DomainException
12
     * @expectedExceptionMessage Tangent function hasn't limit in the positive infinite.
13
     */
14
    public function testFinitePositiveInfiniteTan()
15
    {
16
        InfiniteDecimal::getPositiveInfinite()->tan();
17
    }
18
19
    /**
20
     * @expectedException \DomainException
21
     * @expectedExceptionMessage Tangent function hasn't limit in the negative infinite.
22
     */
23
    public function testFiniteNegativeInfiniteTan()
24
    {
25
        InfiniteDecimal::getNegativeInfinite()->tan();
26
    }
27
}
28