Completed
Push — master ( 19a7d3...6b997b )
by Tim
13:45
created

TimezoneTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 20
rs 10
1
<?php
2
3
namespace JMBTechnologyLimited\ICalDissect;
4
5
/**
6
 *
7
 * @link https://github.com/JMB-Technology-Limited/ICalDissect
8
 * @license https://raw.github.com/JMB-Technology-Limited/ICalDissect/master/LICENSE.txt 3-clause BSD
9
 * @copyright (c) 2014, JMB Technology Limited, http://jmbtechnology.co.uk/
10
 * @author James Baster <[email protected]>
11
 */
12
class TimezoneTest  extends \PHPUnit_Framework_TestCase {
13
	
14
	function dataForTestTimeZone1() {
15
		return array(
16
				array('London.ical','Europe/London'),
17
				array('UTC.ical','UTC'),
18
				array('BasicICAL.ical','UTC'),
19
			);
20
	}
21
	
22
	/**
23
     * @dataProvider dataForTestTimeZone1
24
     */	
25
	function testTimeZone1 ($filename, $timeZone) {
26
		$parser = new ICalParser();
27
		$this->assertTrue($parser->parseFromFile(dirname(__FILE__)."/data/".$filename));
28
		$this->assertEquals($timeZone, $parser->getTimeZoneIdentifier());
29
	}
30
31
}
32
33