'test', 'password' => 'topsecret', 'host' => 'test', ]; $adapter = $this->createMock(Adapter::class); $driver = $this->createMock(Driver::class); $configuration = $this->createMock(Configuration::class); $connection = $this->getMockBuilder(Connection::class) ->onlyMethods(['connectTo']) ->setConstructorArgs([ [ 'adapter' => $adapter, 'platform' => new MySQLPlatform(), 'tablePrefix' => 'nctest', 'primary' => $connectionParams, 'replica' => [ $connectionParams, ], ], $driver, $configuration, ]) ->getMock(); $driverConnection = $this->createMock(DriverConnection::class); $connection->expects(self::once()) ->method('connectTo') ->with('primary') ->willReturn($driverConnection); $connection->ensureConnectedToReplica(); $connection->ensureConnectedToPrimary(); $connection->ensureConnectedToReplica(); } public function testClusterConnectsToPrimaryAndReplica(): void { $connectionParamsPrimary = [ 'user' => 'test', 'password' => 'topsecret', 'host' => 'testprimary', ]; $connectionParamsReplica = [ 'user' => 'test', 'password' => 'topsecret', 'host' => 'testreplica', ]; $adapter = $this->createMock(Adapter::class); $driver = $this->createMock(Driver::class); $configuration = $this->createMock(Configuration::class); $connection = $this->getMockBuilder(Connection::class) ->onlyMethods(['connectTo']) ->setConstructorArgs([ [ 'adapter' => $adapter, 'platform' => new MySQLPlatform(), 'tablePrefix' => 'nctest', 'primary' => $connectionParamsPrimary, 'replica' => [ $connectionParamsReplica, ], ], $driver, $configuration, ]) ->getMock(); $driverConnection = $this->createMock(DriverConnection::class); $connection->expects(self::exactly(2)) ->method('connectTo') ->willReturn($driverConnection); $connection->ensureConnectedToReplica(); $connection->ensureConnectedToPrimary(); $connection->ensureConnectedToReplica(); } } LSoftFonts Apache XML Graphics FOP: https://github.com/apache/xmlgraphics-fopwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/test/layoutengine/standard-testcases/external-graphic_rfc2397.xml
blob: 8508cad8b643bce123c92f5a732d9b39da5cd890 (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