Completed
Push — master ( b9f967...7a222d )
by Andreu
9s
created

testFinitePositiveInfiniteCosec()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
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 cosec
7
 */
8
class InfiniteDecimalCosecTest extends PHPUnit_Framework_TestCase
9
{
10
    /**
11
     * @expectedException \DomainException
12
     * @expectedExceptionMessage Cosecant function hasn't limit in the positive infinite.
13
     */
14
    public function testFinitePositiveInfiniteCosec()
15
    {
16
        InfiniteDecimal::getPositiveInfinite()->cosec();
17
    }
18
19
    /**
20
     * @expectedException \DomainException
21
     * @expectedExceptionMessage Cosecant function hasn't limit in the negative infinite.
22
     */
23
    public function testFiniteNegativeInfiniteCosec()
24
    {
25
        InfiniteDecimal::getNegativeInfinite()->cosec();
26
    }
27
}
28