Completed
Push — master ( 0da14a...aad0cb )
by Angus
07:14
created

Site_Model_test::test_GameOfScanlation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 12
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 9
nc 1
nop 0
dl 12
loc 12
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
class Site_Model_test extends TestCase {
4
	private $Sites_Model;
5
6
	public function setUp() {
7
		$this->resetInstance();
0 ignored issues
show
Bug introduced by
The method resetInstance() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
8
9
		$this->Sites_Model = new Sites_Model();
10
	}
11
12
	//TODO: Each test should check a randomized series each time instead of using the same series.
13
14 View Code Duplication
	public function test_MangaFox() {
1 ignored issue
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
15
		$result = $this->Sites_Model->{'MangaFox'}->getTitleData('tsugumomo');
16
17
		$this->assertInternalType('array', $result);
0 ignored issues
show
Bug introduced by
The method assertInternalType() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
18
		$this->assertArrayHasKey('title', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
19
		$this->assertArrayHasKey('latest_chapter', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
20
		$this->assertArrayHasKey('last_updated', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
21
22
		$this->assertEquals('Tsugumomo', $result['title']);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
23
		$this->assertRegExp('/^[c|v][0-9\.]+(?:\/c[0-9\.]+)?$/', $result['latest_chapter']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
24
		$this->assertRegExp('/^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+$/', $result['last_updated']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
25
	}
26
27 View Code Duplication
	public function test_MangaHere() {
1 ignored issue
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
28
		$result = $this->Sites_Model->{'MangaHere'}->getTitleData('tsugumomo');
29
30
		$this->assertInternalType('array', $result);
0 ignored issues
show
Bug introduced by
The method assertInternalType() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
31
		$this->assertArrayHasKey('title', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
32
		$this->assertArrayHasKey('latest_chapter', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
33
		$this->assertArrayHasKey('last_updated', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
34
35
		$this->assertEquals('Tsugumomo', $result['title']);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
36
		$this->assertRegExp('/^[c|v][0-9\.]+(?:\/c[0-9\.]+)?$/', $result['latest_chapter']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
37
		$this->assertRegExp('/^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+$/', $result['last_updated']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
38
	}
39
40 View Code Duplication
	public function test_Batoto() {
1 ignored issue
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
41
		$this->skipTravis('Missing required cookies.');
0 ignored issues
show
Bug introduced by
The method skipTravis() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
42
43
		$result = $this->Sites_Model->{'Batoto'}->getTitleData('tsugumomo-r4271:--:English');
44
45
		$this->assertInternalType('array', $result);
0 ignored issues
show
Bug introduced by
The method assertInternalType() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
46
		$this->assertArrayHasKey('title', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
47
		$this->assertArrayHasKey('latest_chapter', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
48
		$this->assertArrayHasKey('last_updated', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
49
50
		$this->assertEquals('Tsugumomo', $result['title']);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
51
		$this->assertRegExp('/^[a-zA-Z0-9]+:--:[c|v][0-9\.]+(?:\/c[0-9\.]+)?$/', $result['latest_chapter']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
52
		$this->assertRegExp('/^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+$/', $result['last_updated']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
53
	}
54 View Code Duplication
	public function test_DynastyScans() {
1 ignored issue
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
55
		$result = $this->Sites_Model->{'DynastyScans'}->getTitleData('qualia_the_purple:--:0');
56
57
		$this->assertInternalType('array', $result);
0 ignored issues
show
Bug introduced by
The method assertInternalType() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
58
		$this->assertArrayHasKey('title', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
59
		$this->assertArrayHasKey('latest_chapter', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
60
		$this->assertArrayHasKey('last_updated', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
61
62
		$this->assertEquals('Qualia the Purple', $result['title']);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
63
		$this->assertRegExp('/^ch(?:apters)?[0-9]+(?:_[0-9]+)?$/', $result['latest_chapter']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
64
		$this->assertRegExp('/^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+$/', $result['last_updated']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
65
	}
66 View Code Duplication
	public function test_MangaPanda() {
1 ignored issue
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
67
		$result = $this->Sites_Model->{'MangaPanda'}->getTitleData('relife');
68
69
		$this->assertInternalType('array', $result);
0 ignored issues
show
Bug introduced by
The method assertInternalType() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
70
		$this->assertArrayHasKey('title', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
71
		$this->assertArrayHasKey('latest_chapter', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
72
		$this->assertArrayHasKey('last_updated', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
73
74
		$this->assertEquals('ReLIFE', $result['title']);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
75
		$this->assertRegExp('/^[0-9]+$/', $result['latest_chapter']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
76
		$this->assertRegExp('/^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+$/', $result['last_updated']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
77
	}
78 View Code Duplication
	public function test_MangaStream() {
1 ignored issue
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
79
		$this->skipTravis('Travis\'s PHP Curl ver. doesn\'t seem to play nice with SSL.');
0 ignored issues
show
Bug introduced by
The method skipTravis() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
80
81
		$result = $this->Sites_Model->{'MangaStream'}->getTitleData('okitegami');
82
83
		$this->assertInternalType('array', $result);
0 ignored issues
show
Bug introduced by
The method assertInternalType() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
84
		$this->assertArrayHasKey('title', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
85
		$this->assertArrayHasKey('latest_chapter', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
86
		$this->assertArrayHasKey('last_updated', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
87
88
		$this->assertEquals('The Memorandum of Kyoko Okitegami', $result['title']);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
89
		$this->assertRegExp('/^[0-9]+\/[0-9]+$/', $result['latest_chapter']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
90
		$this->assertRegExp('/^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+$/', $result['last_updated']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
91
	}
92 View Code Duplication
	public function test_WebToons() {
1 ignored issue
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
93
		$result = $this->Sites_Model->{'WebToons'}->getTitleData('93:--:en:--:girls-of-the-wilds:--:action');
94
95
		$this->assertInternalType('array', $result);
0 ignored issues
show
Bug introduced by
The method assertInternalType() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
96
		$this->assertArrayHasKey('title', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
97
		$this->assertArrayHasKey('latest_chapter', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
98
		$this->assertArrayHasKey('last_updated', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
99
100
		$this->assertEquals('Girls of the Wild\'s', $result['title']);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
101
		$this->assertRegExp('/^.*?$/', $result['latest_chapter']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
102
		$this->assertRegExp('/^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+$/', $result['last_updated']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
103
	}
104
	public function test_KissManga() {
105
		$this->markTestSkipped('KM is not supported for the time being');
0 ignored issues
show
Bug introduced by
The method markTestSkipped() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
106
107
		//$this->skipTravis('Missing required cookies.');
108
		//
109
		//$result = $this->Sites_Model->{'KissManga'}->getTitleData('Tsugumomo');
110
		//
111
		//$this->assertInternalType('array', $result);
112
		//$this->assertArrayHasKey('title', $result);
113
		//$this->assertArrayHasKey('latest_chapter', $result);
114
		//$this->assertArrayHasKey('last_updated', $result);
115
		//
116
		//$this->assertEquals('Tsugumomo', $result['title']);
117
		//$this->assertRegExp('/^.*?:--:[0-9]+$/', $result['latest_chapter']);
118
		//$this->assertRegExp('/^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+$/', $result['last_updated']);
119
	}
120 View Code Duplication
	public function test_KireiCake() {
1 ignored issue
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
121
		$result = $this->Sites_Model->{'KireiCake'}->getTitleData('helck');
122
123
		$this->assertInternalType('array', $result);
0 ignored issues
show
Bug introduced by
The method assertInternalType() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
124
		$this->assertArrayHasKey('title', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
125
		$this->assertArrayHasKey('latest_chapter', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
126
		$this->assertArrayHasKey('last_updated', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
127
128
		$this->assertEquals('helck', $result['title']);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
129
		$this->assertRegExp('/^[a-z]+\/[0-9]+\/[0-9]+(?:\/[0-9]+)?$/', $result['latest_chapter']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
130
		$this->assertRegExp('/^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+$/', $result['last_updated']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
131
	}
132 View Code Duplication
	public function test_GameOfScanlation() {
1 ignored issue
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
133
		$result = $this->Sites_Model->{'GameOfScanlation'}->getTitleData('legendary-moonlight-sculptor.99');
134
135
		$this->assertInternalType('array', $result);
0 ignored issues
show
Bug introduced by
The method assertInternalType() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
136
		$this->assertArrayHasKey('title', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
137
		$this->assertArrayHasKey('latest_chapter', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
138
		$this->assertArrayHasKey('last_updated', $result);
0 ignored issues
show
Bug introduced by
The method assertArrayHasKey() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
139
140
		$this->assertEquals('Legendary Moonlight Sculptor', $result['title']);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
141
		$this->assertRegExp('/^[a-z0-9\.-]+$/', $result['latest_chapter']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
142
		$this->assertRegExp('/^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+$/', $result['last_updated']);
0 ignored issues
show
Bug introduced by
The method assertRegExp() does not seem to exist on object<Site_Model_test>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
143
	}
144
}
145