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

InfiniteDecimalCosecTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 3
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testFinitePositiveInfiniteCosec() 0 4 1
A testFiniteNegativeInfiniteCosec() 0 4 1
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