Test Failed
Push — master ( ac9ff0...806846 )
by Johan
03:01
created

SetupTraitTest::testCreateObjectPokerSquares()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
// php artisan test
4
namespace Tests\Unit;
5
6
use PHPUnit\Framework\TestCase;
7
use Joki20\Http\Controllers\PokerSquares;
8
use Joki20\Http\Controllers\Setup;
9
/**
10
 * Test cases for class Guess.
11
 */
12
class SetupTraitTest extends TestCase
13
{
14
    // /**
15
    //  * Construct object and verify that the object is instance of class
16
    //  */
17
    public function testCreateObjectPokerSquares()
18
    {
19
        $pokersquares = new PokerSquares();
20
        $this->assertInstanceOf("\Joki20\Http\Controllers\PokerSquares", $pokersquares);
21
    }
22
23
    public function testTraitSetupName()
24
    {
25
        $pokersquares = new PokerSquares();
26
27
        $exp = strlen($pokersquares->name());
28
        $this->assertEquals($exp, 265);
29
    }
30
}
31