'127.0.0.1']], ['db.example.org', ['host' => 'db.example.org']], ['unix', ['host' => 'unix']], ['[::1]', ['host' => '[::1]']], ['127.0.0.1:3306', ['host' => '127.0.0.1', 'port' => 3306]], ['db.example.org:3306', ['host' => 'db.example.org', 'port' => 3306]], ['unix:3306', ['host' => 'unix', 'port' => 3306]], ['[::1]:3306', ['host' => '[::1]', 'port' => 3306]], ['unix:/socket', ['host' => 'unix', 'unix_socket' => '/socket']], ]; } /** * @dataProvider splitHostFromPortAndSocketData * @param string $host * @param array $expected */ public function testSplitHostFromPortAndSocket($host, array $expected): void { /** @var SystemConfig $config */ $config = $this->createMock(SystemConfig::class); $cacheFactory = $this->createMock(ICacheFactory::class); $factory = new ConnectionFactory($config, $cacheFactory); $this->assertEquals($expected, self::invokePrivate($factory, 'splitHostFromPortAndSocket', [$host])); } } alue='Temp_Accessibility'>Temp_Accessibility Apache XML Graphics FOP: https://github.com/apache/xmlgraphics-fopwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop/render/bitmap/TIFFRendererConfiguratorTestCase.java
blob: b5e6318ce98bf0db3867315b15a564b6c50d6f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84