Completed
Pull Request — master (#133)
by Simone
02:04
created

RulerTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of sensorario/resources repository
5
 *
6
 * (c) Simone Gentili <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sensorario\Resources\Test\Resources;
13
14
use PHPUnit\Framework\TestCase;
15
use Sensorario\Resources\Configurator;
16
use Sensorario\Resources\Container;
17
use Sensorario\Resources\Resource;
18
use Sensorario\Resources\Rulers\Ruler;
19
20
class RulerTest extends TestCase
21
{
22
    /**
23
     * @expectedException \Sensorario\Resources\Exceptions\UndefinedResourceException
24
     * @expectedExceptionMessage Oops! Cant get rule without resource
25
     */
26
    public function testCantGetRuleWithoutRecource()
27
    {
28
        $ruler = new Ruler();
29
        $ruler->getRuleFromResource();
30
    }
31
}
32