1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the Stinger Media Parser package. |
5
|
|
|
* |
6
|
|
|
* (c) Oliver Kotte <[email protected]> |
7
|
|
|
* (c) Florian Meyer <[email protected]> |
8
|
|
|
* |
9
|
|
|
* For the full copyright and license information, please view the LICENSE |
10
|
|
|
* file that was distributed with this source code. |
11
|
|
|
*/ |
12
|
|
|
|
13
|
|
|
namespace StingerSoft\MediaParsingBundle\Tests\Parser\Information; |
14
|
|
|
|
15
|
|
|
use StingerSoft\MediaParsingBundle\Parser\Information\SongInformation; |
16
|
|
|
|
17
|
|
|
class SongInformationTest extends \PHPUnit_Framework_TestCase { |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var SongInformation |
21
|
|
|
*/ |
22
|
|
|
protected $object; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* Sets up the fixture, for example, opens a network connection. |
26
|
|
|
* This method is called before a test is executed. |
27
|
|
|
*/ |
28
|
|
|
protected function setUp(){ |
29
|
|
|
$this->object = new SongInformation; |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* Tears down the fixture, for example, closes a network connection. |
34
|
|
|
* This method is called after a test is executed. |
35
|
|
|
*/ |
36
|
|
|
protected function tearDown(){ |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::setAlbum |
41
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::getAlbum |
42
|
|
|
*/ |
43
|
|
|
public function testAlbum(){ |
44
|
|
|
$this->object->setAlbum('Album'); |
45
|
|
|
$this->assertEquals('Album', $this->object->getAlbum()); |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::setArtist |
50
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::getArtist |
51
|
|
|
*/ |
52
|
|
|
public function testArtist(){ |
53
|
|
|
$this->object->setArtist('Artist'); |
54
|
|
|
$this->assertEquals('Artist', $this->object->getArtist()); |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::setTrackNumber |
59
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::getTrackNumber |
60
|
|
|
*/ |
61
|
|
|
public function testTrackNumber(){ |
62
|
|
|
$this->object->setTrackNumber('TrackNumber'); |
63
|
|
|
$this->assertEquals('TrackNumber', $this->object->getTrackNumber()); |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::setTotalTrackNumbers |
68
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::getTotalTrackNumbers |
69
|
|
|
*/ |
70
|
|
|
public function testTotalTrackNumbers(){ |
71
|
|
|
$this->object->setTotalTrackNumbers('TotalTrackNumbers'); |
72
|
|
|
$this->assertEquals('TotalTrackNumbers', $this->object->getTotalTrackNumbers()); |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::setSetNumber |
77
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::getSetNumber |
78
|
|
|
*/ |
79
|
|
|
public function testSetNumber(){ |
80
|
|
|
$this->object->setSetNumber('SetNumber'); |
81
|
|
|
$this->assertEquals('SetNumber', $this->object->getSetNumber()); |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::setTotalSetNumbers |
86
|
|
|
* @covers StingerSoft\MediaParsingBundle\Parser\Information\SongInformation::getTotalSetNumbers |
87
|
|
|
*/ |
88
|
|
|
public function testTotalSetNumbers(){ |
89
|
|
|
$this->object->setTotalSetNumbers('TotalSetNumbers'); |
90
|
|
|
$this->assertEquals('TotalSetNumbers', $this->object->getTotalSetNumbers()); |
91
|
|
|
} |
92
|
|
|
} |