ClientTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_should_throw_exception_if_api_key_is_not_provided() 0 4 1
1
<?php
2
3
namespace MailerliteBundle\Tests\Service;
4
5
use MailerliteBundle\Service\Client;
6
7
class ClientTest extends \PHPUnit_Framework_TestCase
8
{
9
10
	/**
11
	 * @test
12
	 * @expectedException 			InvalidArgumentException
13
	 * @expectedExceptionMessage	API Key must be provided.
14
	 */
15
	public function it_should_throw_exception_if_api_key_is_not_provided()
16
	{
17
		new Client([]);
18
	}
19
}