From 80f7dc77d430774192b929d780f96260066df2ee Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 18 Oct 2015 09:31:31 +0200 Subject: Update to MediaWiki 1.25.3 --- .../Test/Transport/AbstractTransportTest.php | 77 ---------------------- 1 file changed, 77 deletions(-) delete mode 100644 vendor/ruflin/elastica/test/lib/Elastica/Test/Transport/AbstractTransportTest.php (limited to 'vendor/ruflin/elastica/test/lib/Elastica/Test/Transport/AbstractTransportTest.php') diff --git a/vendor/ruflin/elastica/test/lib/Elastica/Test/Transport/AbstractTransportTest.php b/vendor/ruflin/elastica/test/lib/Elastica/Test/Transport/AbstractTransportTest.php deleted file mode 100644 index 4f1c7114..00000000 --- a/vendor/ruflin/elastica/test/lib/Elastica/Test/Transport/AbstractTransportTest.php +++ /dev/null @@ -1,77 +0,0 @@ - 'Http')), - array(array('type' => new Http())), - array(new Http()), - ); - } - - /** - * @dataProvider getValidDefinitions - */ - public function testCanCreateTransportInstances($transport) - { - $connection = new Connection(); - $params = array(); - $transport = AbstractTransport::create($transport, $connection, $params); - $this->assertInstanceOf('Elastica\Transport\AbstractTransport', $transport); - $this->assertSame($connection, $transport->getConnection()); - } - - public function getInvalidDefinitions() - { - return array( - array(array('transport' => 'Http')), - array('InvalidTransport'), - ); - } - - /** - * @dataProvider getInvalidDefinitions - * @expectedException Elastica\Exception\InvalidException - * @expectedExceptionMessage Invalid transport - */ - public function testThrowsExecptionOnInvalidTransportDefinition($transport) - { - AbstractTransport::create($transport, new Connection()); - } - - public function testCanInjectParamsWhenUsingArray() - { - $connection = new Connection(); - $params = array( - 'param1' => 'some value', - 'param3' => 'value3', - ); - - $transport = AbstractTransport::create(array( - 'type' => 'Http', - 'param1' => 'value1', - 'param2' => 'value2', - ), $connection, $params); - - $this->assertSame('value1', $transport->getParam('param1')); - $this->assertSame('value2', $transport->getParam('param2')); - $this->assertSame('value3', $transport->getParam('param3')); - } -} -- cgit v1.2.3-54-g00ecf