You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2015/05/03 14:39:56 UTC

[16/51] [partial] airavata-php-gateway git commit: removing vendor files

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php
deleted file mode 100644
index c7b4136..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php
+++ /dev/null
@@ -1,170 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-
-class RavenHandlerTest extends TestCase
-{
-    public function setUp()
-    {
-        if (!class_exists("Raven_Client")) {
-            $this->markTestSkipped("raven/raven not installed");
-        }
-
-        require_once __DIR__ . '/MockRavenClient.php';
-    }
-
-    /**
-     * @covers Monolog\Handler\RavenHandler::__construct
-     */
-    public function testConstruct()
-    {
-        $handler = new RavenHandler($this->getRavenClient());
-        $this->assertInstanceOf('Monolog\Handler\RavenHandler', $handler);
-    }
-
-    protected function getHandler($ravenClient)
-    {
-        $handler = new RavenHandler($ravenClient);
-
-        return $handler;
-    }
-
-    protected function getRavenClient()
-    {
-        $dsn = 'http://43f6017361224d098402974103bfc53d:a6a0538fc2934ba2bed32e08741b2cd3@marca.python.live.cheggnet.com:9000/1';
-
-        return new MockRavenClient($dsn);
-    }
-
-    public function testDebug()
-    {
-        $ravenClient = $this->getRavenClient();
-        $handler = $this->getHandler($ravenClient);
-
-        $record = $this->getRecord(Logger::DEBUG, "A test debug message");
-        $handler->handle($record);
-
-        $this->assertEquals($ravenClient::DEBUG, $ravenClient->lastData['level']);
-        $this->assertContains($record['message'], $ravenClient->lastData['message']);
-    }
-
-    public function testWarning()
-    {
-        $ravenClient = $this->getRavenClient();
-        $handler = $this->getHandler($ravenClient);
-
-        $record = $this->getRecord(Logger::WARNING, "A test warning message");
-        $handler->handle($record);
-
-        $this->assertEquals($ravenClient::WARNING, $ravenClient->lastData['level']);
-        $this->assertContains($record['message'], $ravenClient->lastData['message']);
-    }
-
-    public function testTag()
-    {
-        $ravenClient = $this->getRavenClient();
-        $handler = $this->getHandler($ravenClient);
-
-        $tags = array(1, 2, 'foo');
-        $record = $this->getRecord(Logger::INFO, "test", array('tags' => $tags));
-        $handler->handle($record);
-
-        $this->assertEquals($tags, $ravenClient->lastData['tags']);
-    }
-
-    public function testUserContext()
-    {
-        $ravenClient = $this->getRavenClient();
-        $handler = $this->getHandler($ravenClient);
-
-        $user = array(
-            'id' => '123',
-            'email' => 'test@test.com'
-        );
-        $record = $this->getRecord(Logger::INFO, "test", array('user' => $user));
-
-        $handler->handle($record);
-        $this->assertEquals($user, $ravenClient->context->user);
-
-        $secondRecord = $this->getRecord(Logger::INFO, "test without user");
-
-        $handler->handle($secondRecord);
-        $this->assertNull($ravenClient->context->user);
-    }
-
-    public function testException()
-    {
-        $ravenClient = $this->getRavenClient();
-        $handler = $this->getHandler($ravenClient);
-
-        try {
-            $this->methodThatThrowsAnException();
-        } catch (\Exception $e) {
-            $record = $this->getRecord(Logger::ERROR, $e->getMessage(), array('exception' => $e));
-            $handler->handle($record);
-        }
-
-        $this->assertEquals($record['message'], $ravenClient->lastData['message']);
-    }
-
-    public function testHandleBatch()
-    {
-        $records = $this->getMultipleRecords();
-        $records[] = $this->getRecord(Logger::WARNING, 'warning');
-        $records[] = $this->getRecord(Logger::WARNING, 'warning');
-
-        $logFormatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
-        $logFormatter->expects($this->once())->method('formatBatch');
-
-        $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
-        $formatter->expects($this->once())->method('format')->with($this->callback(function ($record) {
-            return $record['level'] == 400;
-        }));
-
-        $handler = $this->getHandler($this->getRavenClient());
-        $handler->setBatchFormatter($logFormatter);
-        $handler->setFormatter($formatter);
-        $handler->handleBatch($records);
-    }
-
-    public function testHandleBatchDoNothingIfRecordsAreBelowLevel()
-    {
-        $records = array(
-            $this->getRecord(Logger::DEBUG, 'debug message 1'),
-            $this->getRecord(Logger::DEBUG, 'debug message 2'),
-            $this->getRecord(Logger::INFO, 'information'),
-        );
-
-        $handler = $this->getMock('Monolog\Handler\RavenHandler', null, array($this->getRavenClient()));
-        $handler->expects($this->never())->method('handle');
-        $handler->setLevel(Logger::ERROR);
-        $handler->handleBatch($records);
-    }
-
-    public function testGetSetBatchFormatter()
-    {
-        $ravenClient = $this->getRavenClient();
-        $handler = $this->getHandler($ravenClient);
-
-        $handler->setBatchFormatter($formatter = new LineFormatter());
-        $this->assertSame($formatter, $handler->getBatchFormatter());
-    }
-
-    private function methodThatThrowsAnException()
-    {
-        throw new \Exception('This is an exception');
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php
deleted file mode 100644
index 3629f8a..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-
-class RedisHandlerTest extends TestCase
-{
-    /**
-     * @expectedException InvalidArgumentException
-     */
-    public function testConstructorShouldThrowExceptionForInvalidRedis()
-    {
-        new RedisHandler(new \stdClass(), 'key');
-    }
-
-    public function testConstructorShouldWorkWithPredis()
-    {
-        $redis = $this->getMock('Predis\Client');
-        $this->assertInstanceof('Monolog\Handler\RedisHandler', new RedisHandler($redis, 'key'));
-    }
-
-    public function testConstructorShouldWorkWithRedis()
-    {
-        $redis = $this->getMock('Redis');
-        $this->assertInstanceof('Monolog\Handler\RedisHandler', new RedisHandler($redis, 'key'));
-    }
-
-    public function testPredisHandle()
-    {
-        $redis = $this->getMock('Predis\Client', array('rpush'));
-
-        // Predis\Client uses rpush
-        $redis->expects($this->once())
-            ->method('rpush')
-            ->with('key', 'test');
-
-        $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
-        $handler = new RedisHandler($redis, 'key');
-        $handler->setFormatter(new LineFormatter("%message%"));
-        $handler->handle($record);
-    }
-
-    public function testRedisHandle()
-    {
-        $redis = $this->getMock('Redis', array('rpush'));
-
-        // Redis uses rPush
-        $redis->expects($this->once())
-            ->method('rPush')
-            ->with('key', 'test');
-
-        $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
-        $handler = new RedisHandler($redis, 'key');
-        $handler->setFormatter(new LineFormatter("%message%"));
-        $handler->handle($record);
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php
deleted file mode 100644
index f4cefda..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-
-/**
- * @covers Monolog\Handler\RotatingFileHandler
- */
-class RotatingFileHandlerTest extends TestCase
-{
-    public function setUp()
-    {
-        $dir = __DIR__.'/Fixtures';
-        chmod($dir, 0777);
-        if (!is_writable($dir)) {
-            $this->markTestSkipped($dir.' must be writeable to test the RotatingFileHandler.');
-        }
-    }
-
-    public function testRotationCreatesNewFile()
-    {
-        touch(__DIR__.'/Fixtures/foo-'.date('Y-m-d', time() - 86400).'.rot');
-
-        $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot');
-        $handler->setFormatter($this->getIdentityFormatter());
-        $handler->handle($this->getRecord());
-
-        $log = __DIR__.'/Fixtures/foo-'.date('Y-m-d').'.rot';
-        $this->assertTrue(file_exists($log));
-        $this->assertEquals('test', file_get_contents($log));
-    }
-
-    /**
-     * @dataProvider rotationTests
-     */
-    public function testRotation($createFile)
-    {
-        touch($old1 = __DIR__.'/Fixtures/foo-'.date('Y-m-d', time() - 86400).'.rot');
-        touch($old2 = __DIR__.'/Fixtures/foo-'.date('Y-m-d', time() - 86400 * 2).'.rot');
-        touch($old3 = __DIR__.'/Fixtures/foo-'.date('Y-m-d', time() - 86400 * 3).'.rot');
-        touch($old4 = __DIR__.'/Fixtures/foo-'.date('Y-m-d', time() - 86400 * 4).'.rot');
-
-        $log = __DIR__.'/Fixtures/foo-'.date('Y-m-d').'.rot';
-
-        if ($createFile) {
-            touch($log);
-        }
-
-        $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot', 2);
-        $handler->setFormatter($this->getIdentityFormatter());
-        $handler->handle($this->getRecord());
-
-        $handler->close();
-
-        $this->assertTrue(file_exists($log));
-        $this->assertTrue(file_exists($old1));
-        $this->assertEquals($createFile, file_exists($old2));
-        $this->assertEquals($createFile, file_exists($old3));
-        $this->assertEquals($createFile, file_exists($old4));
-        $this->assertEquals('test', file_get_contents($log));
-    }
-
-    public function rotationTests()
-    {
-        return array(
-            'Rotation is triggered when the file of the current day is not present'
-                => array(true),
-            'Rotation is not triggered when the file is already present'
-                => array(false),
-        );
-    }
-
-    public function testReuseCurrentFile()
-    {
-        $log = __DIR__.'/Fixtures/foo-'.date('Y-m-d').'.rot';
-        file_put_contents($log, "foo");
-        $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot');
-        $handler->setFormatter($this->getIdentityFormatter());
-        $handler->handle($this->getRecord());
-        $this->assertEquals('footest', file_get_contents($log));
-    }
-
-    public function tearDown()
-    {
-        foreach (glob(__DIR__.'/Fixtures/*.rot') as $file) {
-            unlink($file);
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php
deleted file mode 100644
index b354cee..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-
-/**
- * @covers Monolog\Handler\SamplingHandler::handle
- */
-class SamplingHandlerTest extends TestCase
-{
-    public function testHandle()
-    {
-        $testHandler = new TestHandler();
-        $handler = new SamplingHandler($testHandler, 2);
-        for ($i = 0; $i < 10000; $i++) {
-            $handler->handle($this->getRecord());
-        }
-        $count = count($testHandler->getRecords());
-        // $count should be half of 10k, so between 4k and 6k
-        $this->assertLessThan(6000, $count);
-        $this->assertGreaterThan(4000, $count);
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php
deleted file mode 100644
index d657fae..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php
+++ /dev/null
@@ -1,133 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @author Greg Kedzierski <gr...@gregkedzierski.com>
- * @see    https://api.slack.com/
- */
-class SlackHandlerTest extends TestCase
-{
-    /**
-     * @var resource
-     */
-    private $res;
-
-    /**
-     * @var SlackHandler
-     */
-    private $handler;
-
-    public function setUp()
-    {
-        if (!extension_loaded('openssl')) {
-            $this->markTestSkipped('This test requires openssl to run');
-        }
-    }
-
-    public function testWriteHeader()
-    {
-        $this->createHandler();
-        $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
-        fseek($this->res, 0);
-        $content = fread($this->res, 1024);
-
-        $this->assertRegexp('/POST \/api\/chat.postMessage HTTP\/1.1\\r\\nHost: slack.com\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
-    }
-
-    public function testWriteContent()
-    {
-        $this->createHandler();
-        $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
-        fseek($this->res, 0);
-        $content = fread($this->res, 1024);
-
-        $this->assertRegexp('/token=myToken&channel=channel1&username=Monolog&text=&attachments=.*$/', $content);
-    }
-
-    public function testWriteContentWithEmoji()
-    {
-        $this->createHandler('myToken', 'channel1', 'Monolog', true, 'alien');
-        $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
-        fseek($this->res, 0);
-        $content = fread($this->res, 1024);
-
-        $this->assertRegexp('/icon_emoji=%3Aalien%3A$/', $content);
-    }
-
-    /**
-     * @dataProvider provideLevelColors
-     */
-    public function testWriteContentWithColors($level, $expectedColor)
-    {
-        $this->createHandler();
-        $this->handler->handle($this->getRecord($level, 'test1'));
-        fseek($this->res, 0);
-        $content = fread($this->res, 1024);
-
-        $this->assertRegexp('/color%22%3A%22'.$expectedColor.'/', $content);
-    }
-
-    public function testWriteContentWithPlainTextMessage()
-    {
-        $this->createHandler('myToken', 'channel1', 'Monolog', false);
-        $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
-        fseek($this->res, 0);
-        $content = fread($this->res, 1024);
-
-        $this->assertRegexp('/text=test1/', $content);
-    }
-
-    public function provideLevelColors()
-    {
-        return array(
-            array(Logger::DEBUG,    '%23e3e4e6'),   // escaped #e3e4e6
-            array(Logger::INFO,     'good'),
-            array(Logger::NOTICE,   'good'),
-            array(Logger::WARNING,  'warning'),
-            array(Logger::ERROR,    'danger'),
-            array(Logger::CRITICAL, 'danger'),
-            array(Logger::ALERT,    'danger'),
-            array(Logger::EMERGENCY,'danger'),
-        );
-    }
-
-    private function createHandler($token = 'myToken', $channel = 'channel1', $username = 'Monolog', $useAttachment = true, $iconEmoji = null, $useShortAttachment = false, $includeExtra = false)
-    {
-        $constructorArgs = array($token, $channel, $username, $useAttachment, $iconEmoji, Logger::DEBUG, true, $useShortAttachment, $includeExtra);
-        $this->res = fopen('php://memory', 'a');
-        $this->handler = $this->getMock(
-            '\Monolog\Handler\SlackHandler',
-            array('fsockopen', 'streamSetTimeout', 'closeSocket'),
-            $constructorArgs
-        );
-
-        $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
-        $reflectionProperty->setAccessible(true);
-        $reflectionProperty->setValue($this->handler, 'localhost:1234');
-
-        $this->handler->expects($this->any())
-            ->method('fsockopen')
-            ->will($this->returnValue($this->res));
-        $this->handler->expects($this->any())
-            ->method('streamSetTimeout')
-            ->will($this->returnValue(true));
-        $this->handler->expects($this->any())
-            ->method('closeSocket')
-            ->will($this->returnValue(true));
-
-        $this->handler->setFormatter($this->getIdentityFormatter());
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php
deleted file mode 100644
index 2e3d504..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php
+++ /dev/null
@@ -1,282 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @author Pablo de Leon Belloc <pa...@gmail.com>
- */
-class SocketHandlerTest extends TestCase
-{
-    /**
-     * @var Monolog\Handler\SocketHandler
-     */
-    private $handler;
-
-    /**
-     * @var resource
-     */
-    private $res;
-
-    /**
-     * @expectedException UnexpectedValueException
-     */
-    public function testInvalidHostname()
-    {
-        $this->createHandler('garbage://here');
-        $this->writeRecord('data');
-    }
-
-    /**
-     * @expectedException \InvalidArgumentException
-     */
-    public function testBadConnectionTimeout()
-    {
-        $this->createHandler('localhost:1234');
-        $this->handler->setConnectionTimeout(-1);
-    }
-
-    public function testSetConnectionTimeout()
-    {
-        $this->createHandler('localhost:1234');
-        $this->handler->setConnectionTimeout(10.1);
-        $this->assertEquals(10.1, $this->handler->getConnectionTimeout());
-    }
-
-    /**
-     * @expectedException \InvalidArgumentException
-     */
-    public function testBadTimeout()
-    {
-        $this->createHandler('localhost:1234');
-        $this->handler->setTimeout(-1);
-    }
-
-    public function testSetTimeout()
-    {
-        $this->createHandler('localhost:1234');
-        $this->handler->setTimeout(10.25);
-        $this->assertEquals(10.25, $this->handler->getTimeout());
-    }
-
-    public function testSetConnectionString()
-    {
-        $this->createHandler('tcp://localhost:9090');
-        $this->assertEquals('tcp://localhost:9090', $this->handler->getConnectionString());
-    }
-
-    /**
-     * @expectedException UnexpectedValueException
-     */
-    public function testExceptionIsThrownOnFsockopenError()
-    {
-        $this->setMockHandler(array('fsockopen'));
-        $this->handler->expects($this->once())
-            ->method('fsockopen')
-            ->will($this->returnValue(false));
-        $this->writeRecord('Hello world');
-    }
-
-    /**
-     * @expectedException UnexpectedValueException
-     */
-    public function testExceptionIsThrownOnPfsockopenError()
-    {
-        $this->setMockHandler(array('pfsockopen'));
-        $this->handler->expects($this->once())
-            ->method('pfsockopen')
-            ->will($this->returnValue(false));
-        $this->handler->setPersistent(true);
-        $this->writeRecord('Hello world');
-    }
-
-    /**
-     * @expectedException UnexpectedValueException
-     */
-    public function testExceptionIsThrownIfCannotSetTimeout()
-    {
-        $this->setMockHandler(array('streamSetTimeout'));
-        $this->handler->expects($this->once())
-            ->method('streamSetTimeout')
-            ->will($this->returnValue(false));
-        $this->writeRecord('Hello world');
-    }
-
-    /**
-     * @expectedException RuntimeException
-     */
-    public function testWriteFailsOnIfFwriteReturnsFalse()
-    {
-        $this->setMockHandler(array('fwrite'));
-
-        $callback = function ($arg) {
-            $map = array(
-                'Hello world' => 6,
-                'world' => false,
-            );
-
-            return $map[$arg];
-        };
-
-        $this->handler->expects($this->exactly(2))
-            ->method('fwrite')
-            ->will($this->returnCallback($callback));
-
-        $this->writeRecord('Hello world');
-    }
-
-    /**
-     * @expectedException RuntimeException
-     */
-    public function testWriteFailsIfStreamTimesOut()
-    {
-        $this->setMockHandler(array('fwrite', 'streamGetMetadata'));
-
-        $callback = function ($arg) {
-            $map = array(
-                'Hello world' => 6,
-                'world' => 5,
-            );
-
-            return $map[$arg];
-        };
-
-        $this->handler->expects($this->exactly(1))
-            ->method('fwrite')
-            ->will($this->returnCallback($callback));
-        $this->handler->expects($this->exactly(1))
-            ->method('streamGetMetadata')
-            ->will($this->returnValue(array('timed_out' => true)));
-
-        $this->writeRecord('Hello world');
-    }
-
-    /**
-     * @expectedException RuntimeException
-     */
-    public function testWriteFailsOnIncompleteWrite()
-    {
-        $this->setMockHandler(array('fwrite', 'streamGetMetadata'));
-
-        $res = $this->res;
-        $callback = function ($string) use ($res) {
-            fclose($res);
-
-            return strlen('Hello');
-        };
-
-        $this->handler->expects($this->exactly(1))
-            ->method('fwrite')
-            ->will($this->returnCallback($callback));
-        $this->handler->expects($this->exactly(1))
-            ->method('streamGetMetadata')
-            ->will($this->returnValue(array('timed_out' => false)));
-
-        $this->writeRecord('Hello world');
-    }
-
-    public function testWriteWithMemoryFile()
-    {
-        $this->setMockHandler();
-        $this->writeRecord('test1');
-        $this->writeRecord('test2');
-        $this->writeRecord('test3');
-        fseek($this->res, 0);
-        $this->assertEquals('test1test2test3', fread($this->res, 1024));
-    }
-
-    public function testWriteWithMock()
-    {
-        $this->setMockHandler(array('fwrite'));
-
-        $callback = function ($arg) {
-            $map = array(
-                'Hello world' => 6,
-                'world' => 5,
-            );
-
-            return $map[$arg];
-        };
-
-        $this->handler->expects($this->exactly(2))
-            ->method('fwrite')
-            ->will($this->returnCallback($callback));
-
-        $this->writeRecord('Hello world');
-    }
-
-    public function testClose()
-    {
-        $this->setMockHandler();
-        $this->writeRecord('Hello world');
-        $this->assertInternalType('resource', $this->res);
-        $this->handler->close();
-        $this->assertFalse(is_resource($this->res), "Expected resource to be closed after closing handler");
-    }
-
-    public function testCloseDoesNotClosePersistentSocket()
-    {
-        $this->setMockHandler();
-        $this->handler->setPersistent(true);
-        $this->writeRecord('Hello world');
-        $this->assertTrue(is_resource($this->res));
-        $this->handler->close();
-        $this->assertTrue(is_resource($this->res));
-    }
-
-    private function createHandler($connectionString)
-    {
-        $this->handler = new SocketHandler($connectionString);
-        $this->handler->setFormatter($this->getIdentityFormatter());
-    }
-
-    private function writeRecord($string)
-    {
-        $this->handler->handle($this->getRecord(Logger::WARNING, $string));
-    }
-
-    private function setMockHandler(array $methods = array())
-    {
-        $this->res = fopen('php://memory', 'a');
-
-        $defaultMethods = array('fsockopen', 'pfsockopen', 'streamSetTimeout');
-        $newMethods = array_diff($methods, $defaultMethods);
-
-        $finalMethods = array_merge($defaultMethods, $newMethods);
-
-        $this->handler = $this->getMock(
-            '\Monolog\Handler\SocketHandler', $finalMethods, array('localhost:1234')
-        );
-
-        if (!in_array('fsockopen', $methods)) {
-            $this->handler->expects($this->any())
-                ->method('fsockopen')
-                ->will($this->returnValue($this->res));
-        }
-
-        if (!in_array('pfsockopen', $methods)) {
-            $this->handler->expects($this->any())
-                ->method('pfsockopen')
-                ->will($this->returnValue($this->res));
-        }
-
-        if (!in_array('streamSetTimeout', $methods)) {
-            $this->handler->expects($this->any())
-                ->method('streamSetTimeout')
-                ->will($this->returnValue(true));
-        }
-
-        $this->handler->setFormatter($this->getIdentityFormatter());
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php
deleted file mode 100644
index 44d3d9f..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class StreamHandlerTest extends TestCase
-{
-    /**
-     * @covers Monolog\Handler\StreamHandler::__construct
-     * @covers Monolog\Handler\StreamHandler::write
-     */
-    public function testWrite()
-    {
-        $handle = fopen('php://memory', 'a+');
-        $handler = new StreamHandler($handle);
-        $handler->setFormatter($this->getIdentityFormatter());
-        $handler->handle($this->getRecord(Logger::WARNING, 'test'));
-        $handler->handle($this->getRecord(Logger::WARNING, 'test2'));
-        $handler->handle($this->getRecord(Logger::WARNING, 'test3'));
-        fseek($handle, 0);
-        $this->assertEquals('testtest2test3', fread($handle, 100));
-    }
-
-    /**
-     * @covers Monolog\Handler\StreamHandler::close
-     */
-    public function testClose()
-    {
-        $handle = fopen('php://memory', 'a+');
-        $handler = new StreamHandler($handle);
-        $this->assertTrue(is_resource($handle));
-        $handler->close();
-        $this->assertFalse(is_resource($handle));
-    }
-
-    /**
-     * @covers Monolog\Handler\StreamHandler::write
-     */
-    public function testWriteCreatesTheStreamResource()
-    {
-        $handler = new StreamHandler('php://memory');
-        $handler->handle($this->getRecord());
-    }
-
-    /**
-     * @covers Monolog\Handler\StreamHandler::__construct
-     * @covers Monolog\Handler\StreamHandler::write
-     */
-    public function testWriteLocking()
-    {
-        $temp = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'monolog_locked_log';
-        $handler = new StreamHandler($temp, Logger::DEBUG, true, null, true);
-        $handler->handle($this->getRecord());
-    }
-
-    /**
-     * @expectedException LogicException
-     * @covers Monolog\Handler\StreamHandler::__construct
-     * @covers Monolog\Handler\StreamHandler::write
-     */
-    public function testWriteMissingResource()
-    {
-        $handler = new StreamHandler(null);
-        $handler->handle($this->getRecord());
-    }
-
-    public function invalidArgumentProvider()
-    {
-        return array(
-            array(1),
-            array(array()),
-            array(array('bogus://url')),
-        );
-    }
-
-    /**
-     * @dataProvider invalidArgumentProvider
-     * @expectedException InvalidArgumentException
-     * @covers Monolog\Handler\StreamHandler::__construct
-     */
-    public function testWriteInvalidArgument($invalidArgument)
-    {
-        $handler = new StreamHandler($invalidArgument);
-    }
-
-    /**
-     * @expectedException UnexpectedValueException
-     * @covers Monolog\Handler\StreamHandler::__construct
-     * @covers Monolog\Handler\StreamHandler::write
-     */
-    public function testWriteInvalidResource()
-    {
-        $handler = new StreamHandler('bogus://url');
-        $handler->handle($this->getRecord());
-    }
-
-    /**
-     * @expectedException UnexpectedValueException
-     * @covers Monolog\Handler\StreamHandler::__construct
-     * @covers Monolog\Handler\StreamHandler::write
-     */
-    public function testWriteNonExistingResource()
-    {
-        $handler = new StreamHandler('/foo/bar/baz/'.rand(0, 10000));
-        $handler->handle($this->getRecord());
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php
deleted file mode 100644
index ac88522..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\TestCase;
-
-class SwiftMailerHandlerTest extends TestCase
-{
-    /** @var \Swift_Mailer|\PHPUnit_Framework_MockObject_MockObject */
-    private $mailer;
-
-    public function setUp()
-    {
-        $this->mailer = $this
-            ->getMockBuilder('Swift_Mailer')
-            ->disableOriginalConstructor()
-            ->getMock();
-    }
-
-    public function testMessageCreationIsLazyWhenUsingCallback()
-    {
-        $this->mailer->expects($this->never())
-            ->method('send');
-
-        $callback = function () {
-            throw new \RuntimeException('Swift_Message creation callback should not have been called in this test');
-        };
-        $handler = new SwiftMailerHandler($this->mailer, $callback);
-
-        $records = array(
-            $this->getRecord(Logger::DEBUG),
-            $this->getRecord(Logger::INFO),
-        );
-        $handler->handleBatch($records);
-    }
-
-    public function testMessageCanBeCustomizedGivenLoggedData()
-    {
-        // Wire Mailer to expect a specific Swift_Message with a customized Subject
-        $expectedMessage = new \Swift_Message();
-        $this->mailer->expects($this->once())
-            ->method('send')
-            ->with($this->callback(function ($value) use ($expectedMessage) {
-                return $value instanceof \Swift_Message
-                    && $value->getSubject() === 'Emergency'
-                    && $value === $expectedMessage;
-            }));
-
-        // Callback dynamically changes subject based on number of logged records
-        $callback = function ($content, array $records) use ($expectedMessage) {
-            $subject = count($records) > 0 ? 'Emergency' : 'Normal';
-            $expectedMessage->setSubject($subject);
-
-            return $expectedMessage;
-        };
-        $handler = new SwiftMailerHandler($this->mailer, $callback);
-
-        // Logging 1 record makes this an Emergency
-        $records = array(
-            $this->getRecord(Logger::EMERGENCY),
-        );
-        $handler->handleBatch($records);
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php
deleted file mode 100644
index 8f9e46b..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-class SyslogHandlerTest extends \PHPUnit_Framework_TestCase
-{
-    /**
-     * @covers Monolog\Handler\SyslogHandler::__construct
-     */
-    public function testConstruct()
-    {
-        $handler = new SyslogHandler('test');
-        $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
-
-        $handler = new SyslogHandler('test', LOG_USER);
-        $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
-
-        $handler = new SyslogHandler('test', 'user');
-        $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
-
-        $handler = new SyslogHandler('test', LOG_USER, Logger::DEBUG, true, LOG_PERROR);
-        $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
-    }
-
-    /**
-     * @covers Monolog\Handler\SyslogHandler::__construct
-     */
-    public function testConstructInvalidFacility()
-    {
-        $this->setExpectedException('UnexpectedValueException');
-        $handler = new SyslogHandler('test', 'unknown');
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php
deleted file mode 100644
index 497812b..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-/**
- * @requires extension sockets
- */
-class SyslogUdpHandlerTest extends \PHPUnit_Framework_TestCase
-{
-    /**
-     * @expectedException UnexpectedValueException
-     */
-    public function testWeValidateFacilities()
-    {
-        $handler = new SyslogUdpHandler("ip", null, "invalidFacility");
-    }
-
-    public function testWeSplitIntoLines()
-    {
-        $handler = new SyslogUdpHandler("127.0.0.1", 514, "authpriv");
-        $handler->setFormatter(new \Monolog\Formatter\ChromePHPFormatter());
-
-        $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('write'), array('lol', 'lol'));
-        $socket->expects($this->at(0))
-            ->method('write')
-            ->with("lol", "<".(LOG_AUTHPRIV + LOG_WARNING).">1 ");
-        $socket->expects($this->at(1))
-            ->method('write')
-            ->with("hej", "<".(LOG_AUTHPRIV + LOG_WARNING).">1 ");
-
-        $handler->setSocket($socket);
-
-        $handler->handle($this->getRecordWithMessage("hej\nlol"));
-    }
-
-    protected function getRecordWithMessage($msg)
-    {
-        return array('message' => $msg, 'level' => \Monolog\Logger::WARNING, 'context' => null, 'extra' => array(), 'channel' => 'lol');
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php
deleted file mode 100644
index 801d80a..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @covers Monolog\Handler\TestHandler
- */
-class TestHandlerTest extends TestCase
-{
-    /**
-     * @dataProvider methodProvider
-     */
-    public function testHandler($method, $level)
-    {
-        $handler = new TestHandler;
-        $record = $this->getRecord($level, 'test'.$method);
-        $this->assertFalse($handler->{'has'.$method}($record));
-        $this->assertFalse($handler->{'has'.$method.'Records'}());
-        $handler->handle($record);
-
-        $this->assertFalse($handler->{'has'.$method}('bar'));
-        $this->assertTrue($handler->{'has'.$method}($record));
-        $this->assertTrue($handler->{'has'.$method}('test'.$method));
-        $this->assertTrue($handler->{'has'.$method.'Records'}());
-
-        $records = $handler->getRecords();
-        unset($records[0]['formatted']);
-        $this->assertEquals(array($record), $records);
-    }
-
-    public function methodProvider()
-    {
-        return array(
-            array('Emergency', Logger::EMERGENCY),
-            array('Alert'    , Logger::ALERT),
-            array('Critical' , Logger::CRITICAL),
-            array('Error'    , Logger::ERROR),
-            array('Warning'  , Logger::WARNING),
-            array('Info'     , Logger::INFO),
-            array('Notice'   , Logger::NOTICE),
-            array('Debug'    , Logger::DEBUG),
-        );
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php
deleted file mode 100644
index bcaf52b..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-
-/**
- * @requires extension sockets
- */
-class UdpSocketTest extends TestCase
-{
-    public function testWeDoNotTruncateShortMessages()
-    {
-        $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol'));
-
-        $socket->expects($this->at(0))
-            ->method('send')
-            ->with("HEADER: The quick brown fox jumps over the lazy dog");
-
-        $socket->write("The quick brown fox jumps over the lazy dog", "HEADER: ");
-    }
-
-    public function testLongMessagesAreTruncated()
-    {
-        $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol'));
-
-        $truncatedString = str_repeat("derp", 16254).'d';
-
-        $socket->expects($this->exactly(1))
-            ->method('send')
-            ->with("HEADER" . $truncatedString);
-
-        $longString = str_repeat("derp", 20000);
-
-        $socket->write($longString, "HEADER");
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php
deleted file mode 100644
index 8d37a1f..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class WhatFailureGroupHandlerTest extends TestCase
-{
-    /**
-     * @covers Monolog\Handler\WhatFailureGroupHandler::__construct
-     * @expectedException InvalidArgumentException
-     */
-    public function testConstructorOnlyTakesHandler()
-    {
-        new WhatFailureGroupHandler(array(new TestHandler(), "foo"));
-    }
-
-    /**
-     * @covers Monolog\Handler\WhatFailureGroupHandler::__construct
-     * @covers Monolog\Handler\WhatFailureGroupHandler::handle
-     */
-    public function testHandle()
-    {
-        $testHandlers = array(new TestHandler(), new TestHandler());
-        $handler = new WhatFailureGroupHandler($testHandlers);
-        $handler->handle($this->getRecord(Logger::DEBUG));
-        $handler->handle($this->getRecord(Logger::INFO));
-        foreach ($testHandlers as $test) {
-            $this->assertTrue($test->hasDebugRecords());
-            $this->assertTrue($test->hasInfoRecords());
-            $this->assertTrue(count($test->getRecords()) === 2);
-        }
-    }
-
-    /**
-     * @covers Monolog\Handler\WhatFailureGroupHandler::handleBatch
-     */
-    public function testHandleBatch()
-    {
-        $testHandlers = array(new TestHandler(), new TestHandler());
-        $handler = new WhatFailureGroupHandler($testHandlers);
-        $handler->handleBatch(array($this->getRecord(Logger::DEBUG), $this->getRecord(Logger::INFO)));
-        foreach ($testHandlers as $test) {
-            $this->assertTrue($test->hasDebugRecords());
-            $this->assertTrue($test->hasInfoRecords());
-            $this->assertTrue(count($test->getRecords()) === 2);
-        }
-    }
-
-    /**
-     * @covers Monolog\Handler\WhatFailureGroupHandler::isHandling
-     */
-    public function testIsHandling()
-    {
-        $testHandlers = array(new TestHandler(Logger::ERROR), new TestHandler(Logger::WARNING));
-        $handler = new WhatFailureGroupHandler($testHandlers);
-        $this->assertTrue($handler->isHandling($this->getRecord(Logger::ERROR)));
-        $this->assertTrue($handler->isHandling($this->getRecord(Logger::WARNING)));
-        $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
-    }
-
-    /**
-     * @covers Monolog\Handler\WhatFailureGroupHandler::handle
-     */
-    public function testHandleUsesProcessors()
-    {
-        $test = new TestHandler();
-        $handler = new WhatFailureGroupHandler(array($test));
-        $handler->pushProcessor(function ($record) {
-            $record['extra']['foo'] = true;
-
-            return $record;
-        });
-        $handler->handle($this->getRecord(Logger::WARNING));
-        $this->assertTrue($test->hasWarningRecords());
-        $records = $test->getRecords();
-        $this->assertTrue($records[0]['extra']['foo']);
-    }
-
-    /**
-     * @covers Monolog\Handler\WhatFailureGroupHandler::handle
-     */
-    public function testHandleException()
-    {
-        $test = new TestHandler();
-        $exception = new ExceptionTestHandler();
-        $handler = new WhatFailureGroupHandler(array($exception, $test, $exception));
-        $handler->pushProcessor(function ($record) {
-            $record['extra']['foo'] = true;
-
-            return $record;
-        });
-        $handler->handle($this->getRecord(Logger::WARNING));
-        $this->assertTrue($test->hasWarningRecords());
-        $records = $test->getRecords();
-        $this->assertTrue($records[0]['extra']['foo']);
-    }
-}
-
-class ExceptionTestHandler extends TestHandler
-{
-    /**
-     * {@inheritdoc}
-     */
-    public function handle(array $record)
-    {
-        parent::handle($record);
-
-        throw new \Exception("ExceptionTestHandler::handle");
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php b/vendor/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php
deleted file mode 100644
index 416039e..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-
-class ZendMonitorHandlerTest extends TestCase
-{
-    protected $zendMonitorHandler;
-
-    public function setUp()
-    {
-        if (!function_exists('zend_monitor_custom_event')) {
-            $this->markTestSkipped('ZendServer is not installed');
-        }
-    }
-
-    /**
-     * @covers  Monolog\Handler\ZendMonitorHandler::write
-     */
-    public function testWrite()
-    {
-        $record = $this->getRecord();
-        $formatterResult = array(
-            'message' => $record['message']
-        );
-
-        $zendMonitor = $this->getMockBuilder('Monolog\Handler\ZendMonitorHandler')
-            ->setMethods(array('writeZendMonitorCustomEvent', 'getDefaultFormatter'))
-            ->getMock();
-
-        $formatterMock = $this->getMockBuilder('Monolog\Formatter\NormalizerFormatter')
-            ->disableOriginalConstructor()
-            ->getMock();
-
-        $formatterMock->expects($this->once())
-            ->method('format')
-            ->will($this->returnValue($formatterResult));
-
-        $zendMonitor->expects($this->once())
-            ->method('getDefaultFormatter')
-            ->will($this->returnValue($formatterMock));
-
-        $levelMap = $zendMonitor->getLevelMap();
-
-        $zendMonitor->expects($this->once())
-            ->method('writeZendMonitorCustomEvent')
-            ->with($levelMap[$record['level']], $record['message'], $formatterResult);
-
-        $zendMonitor->handle($record);
-    }
-
-    /**
-     * @covers Monolog\Handler\ZendMonitorHandler::getDefaultFormatter
-     */
-    public function testGetDefaultFormatterReturnsNormalizerFormatter()
-    {
-        $zendMonitor = new ZendMonitorHandler();
-        $this->assertInstanceOf('Monolog\Formatter\NormalizerFormatter', $zendMonitor->getDefaultFormatter());
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/LoggerTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/LoggerTest.php b/vendor/monolog/monolog/tests/Monolog/LoggerTest.php
deleted file mode 100644
index 7a19c0b..0000000
--- a/vendor/monolog/monolog/tests/Monolog/LoggerTest.php
+++ /dev/null
@@ -1,409 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-use Monolog\Processor\WebProcessor;
-use Monolog\Handler\TestHandler;
-
-class LoggerTest extends \PHPUnit_Framework_TestCase
-{
-    /**
-     * @covers Monolog\Logger::getName
-     */
-    public function testGetName()
-    {
-        $logger = new Logger('foo');
-        $this->assertEquals('foo', $logger->getName());
-    }
-
-    /**
-     * @covers Monolog\Logger::getLevelName
-     */
-    public function testGetLevelName()
-    {
-        $this->assertEquals('ERROR', Logger::getLevelName(Logger::ERROR));
-    }
-
-    /**
-     * @covers Monolog\Logger::getLevelName
-     * @expectedException InvalidArgumentException
-     */
-    public function testGetLevelNameThrows()
-    {
-        Logger::getLevelName(5);
-    }
-
-    /**
-     * @covers Monolog\Logger::__construct
-     */
-    public function testChannel()
-    {
-        $logger = new Logger('foo');
-        $handler = new TestHandler;
-        $logger->pushHandler($handler);
-        $logger->addWarning('test');
-        list($record) = $handler->getRecords();
-        $this->assertEquals('foo', $record['channel']);
-    }
-
-    /**
-     * @covers Monolog\Logger::addRecord
-     */
-    public function testLog()
-    {
-        $logger = new Logger(__METHOD__);
-
-        $handler = $this->getMock('Monolog\Handler\NullHandler', array('handle'));
-        $handler->expects($this->once())
-            ->method('handle');
-        $logger->pushHandler($handler);
-
-        $this->assertTrue($logger->addWarning('test'));
-    }
-
-    /**
-     * @covers Monolog\Logger::addRecord
-     */
-    public function testLogNotHandled()
-    {
-        $logger = new Logger(__METHOD__);
-
-        $handler = $this->getMock('Monolog\Handler\NullHandler', array('handle'), array(Logger::ERROR));
-        $handler->expects($this->never())
-            ->method('handle');
-        $logger->pushHandler($handler);
-
-        $this->assertFalse($logger->addWarning('test'));
-    }
-
-    public function testHandlersInCtor()
-    {
-        $handler1 = new TestHandler;
-        $handler2 = new TestHandler;
-        $logger = new Logger(__METHOD__, array($handler1, $handler2));
-
-        $this->assertEquals($handler1, $logger->popHandler());
-        $this->assertEquals($handler2, $logger->popHandler());
-    }
-
-    public function testProcessorsInCtor()
-    {
-        $processor1 = new WebProcessor;
-        $processor2 = new WebProcessor;
-        $logger = new Logger(__METHOD__, array(), array($processor1, $processor2));
-
-        $this->assertEquals($processor1, $logger->popProcessor());
-        $this->assertEquals($processor2, $logger->popProcessor());
-    }
-
-    /**
-     * @covers Monolog\Logger::pushHandler
-     * @covers Monolog\Logger::popHandler
-     * @expectedException LogicException
-     */
-    public function testPushPopHandler()
-    {
-        $logger = new Logger(__METHOD__);
-        $handler1 = new TestHandler;
-        $handler2 = new TestHandler;
-
-        $logger->pushHandler($handler1);
-        $logger->pushHandler($handler2);
-
-        $this->assertEquals($handler2, $logger->popHandler());
-        $this->assertEquals($handler1, $logger->popHandler());
-        $logger->popHandler();
-    }
-
-    /**
-     * @covers Monolog\Logger::pushProcessor
-     * @covers Monolog\Logger::popProcessor
-     * @expectedException LogicException
-     */
-    public function testPushPopProcessor()
-    {
-        $logger = new Logger(__METHOD__);
-        $processor1 = new WebProcessor;
-        $processor2 = new WebProcessor;
-
-        $logger->pushProcessor($processor1);
-        $logger->pushProcessor($processor2);
-
-        $this->assertEquals($processor2, $logger->popProcessor());
-        $this->assertEquals($processor1, $logger->popProcessor());
-        $logger->popProcessor();
-    }
-
-    /**
-     * @covers Monolog\Logger::pushProcessor
-     * @expectedException InvalidArgumentException
-     */
-    public function testPushProcessorWithNonCallable()
-    {
-        $logger = new Logger(__METHOD__);
-
-        $logger->pushProcessor(new \stdClass());
-    }
-
-    /**
-     * @covers Monolog\Logger::addRecord
-     */
-    public function testProcessorsAreExecuted()
-    {
-        $logger = new Logger(__METHOD__);
-        $handler = new TestHandler;
-        $logger->pushHandler($handler);
-        $logger->pushProcessor(function ($record) {
-            $record['extra']['win'] = true;
-
-            return $record;
-        });
-        $logger->addError('test');
-        list($record) = $handler->getRecords();
-        $this->assertTrue($record['extra']['win']);
-    }
-
-    /**
-     * @covers Monolog\Logger::addRecord
-     */
-    public function testProcessorsAreCalledOnlyOnce()
-    {
-        $logger = new Logger(__METHOD__);
-        $handler = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler->expects($this->any())
-            ->method('isHandling')
-            ->will($this->returnValue(true))
-        ;
-        $handler->expects($this->any())
-            ->method('handle')
-            ->will($this->returnValue(true))
-        ;
-        $logger->pushHandler($handler);
-
-        $processor = $this->getMockBuilder('Monolog\Processor\WebProcessor')
-            ->disableOriginalConstructor()
-            ->setMethods(array('__invoke'))
-            ->getMock()
-        ;
-        $processor->expects($this->once())
-            ->method('__invoke')
-            ->will($this->returnArgument(0))
-        ;
-        $logger->pushProcessor($processor);
-
-        $logger->addError('test');
-    }
-
-    /**
-     * @covers Monolog\Logger::addRecord
-     */
-    public function testProcessorsNotCalledWhenNotHandled()
-    {
-        $logger = new Logger(__METHOD__);
-        $handler = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler->expects($this->once())
-            ->method('isHandling')
-            ->will($this->returnValue(false))
-        ;
-        $logger->pushHandler($handler);
-        $that = $this;
-        $logger->pushProcessor(function ($record) use ($that) {
-            $that->fail('The processor should not be called');
-        });
-        $logger->addAlert('test');
-    }
-
-    /**
-     * @covers Monolog\Logger::addRecord
-     */
-    public function testHandlersNotCalledBeforeFirstHandling()
-    {
-        $logger = new Logger(__METHOD__);
-
-        $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler1->expects($this->never())
-            ->method('isHandling')
-            ->will($this->returnValue(false))
-        ;
-        $handler1->expects($this->once())
-            ->method('handle')
-            ->will($this->returnValue(false))
-        ;
-        $logger->pushHandler($handler1);
-
-        $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler2->expects($this->once())
-            ->method('isHandling')
-            ->will($this->returnValue(true))
-        ;
-        $handler2->expects($this->once())
-            ->method('handle')
-            ->will($this->returnValue(false))
-        ;
-        $logger->pushHandler($handler2);
-
-        $handler3 = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler3->expects($this->once())
-            ->method('isHandling')
-            ->will($this->returnValue(false))
-        ;
-        $handler3->expects($this->never())
-            ->method('handle')
-        ;
-        $logger->pushHandler($handler3);
-
-        $logger->debug('test');
-    }
-
-    /**
-     * @covers Monolog\Logger::addRecord
-     */
-    public function testBubblingWhenTheHandlerReturnsFalse()
-    {
-        $logger = new Logger(__METHOD__);
-
-        $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler1->expects($this->any())
-            ->method('isHandling')
-            ->will($this->returnValue(true))
-        ;
-        $handler1->expects($this->once())
-            ->method('handle')
-            ->will($this->returnValue(false))
-        ;
-        $logger->pushHandler($handler1);
-
-        $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler2->expects($this->any())
-            ->method('isHandling')
-            ->will($this->returnValue(true))
-        ;
-        $handler2->expects($this->once())
-            ->method('handle')
-            ->will($this->returnValue(false))
-        ;
-        $logger->pushHandler($handler2);
-
-        $logger->debug('test');
-    }
-
-    /**
-     * @covers Monolog\Logger::addRecord
-     */
-    public function testNotBubblingWhenTheHandlerReturnsTrue()
-    {
-        $logger = new Logger(__METHOD__);
-
-        $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler1->expects($this->any())
-            ->method('isHandling')
-            ->will($this->returnValue(true))
-        ;
-        $handler1->expects($this->never())
-            ->method('handle')
-        ;
-        $logger->pushHandler($handler1);
-
-        $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler2->expects($this->any())
-            ->method('isHandling')
-            ->will($this->returnValue(true))
-        ;
-        $handler2->expects($this->once())
-            ->method('handle')
-            ->will($this->returnValue(true))
-        ;
-        $logger->pushHandler($handler2);
-
-        $logger->debug('test');
-    }
-
-    /**
-     * @covers Monolog\Logger::isHandling
-     */
-    public function testIsHandling()
-    {
-        $logger = new Logger(__METHOD__);
-
-        $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler1->expects($this->any())
-            ->method('isHandling')
-            ->will($this->returnValue(false))
-        ;
-
-        $logger->pushHandler($handler1);
-        $this->assertFalse($logger->isHandling(Logger::DEBUG));
-
-        $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
-        $handler2->expects($this->any())
-            ->method('isHandling')
-            ->will($this->returnValue(true))
-        ;
-
-        $logger->pushHandler($handler2);
-        $this->assertTrue($logger->isHandling(Logger::DEBUG));
-    }
-
-    /**
-     * @dataProvider logMethodProvider
-     * @covers Monolog\Logger::addDebug
-     * @covers Monolog\Logger::addInfo
-     * @covers Monolog\Logger::addNotice
-     * @covers Monolog\Logger::addWarning
-     * @covers Monolog\Logger::addError
-     * @covers Monolog\Logger::addCritical
-     * @covers Monolog\Logger::addAlert
-     * @covers Monolog\Logger::addEmergency
-     * @covers Monolog\Logger::debug
-     * @covers Monolog\Logger::info
-     * @covers Monolog\Logger::notice
-     * @covers Monolog\Logger::warn
-     * @covers Monolog\Logger::err
-     * @covers Monolog\Logger::crit
-     * @covers Monolog\Logger::alert
-     * @covers Monolog\Logger::emerg
-     */
-    public function testLogMethods($method, $expectedLevel)
-    {
-        $logger = new Logger('foo');
-        $handler = new TestHandler;
-        $logger->pushHandler($handler);
-        $logger->{$method}('test');
-        list($record) = $handler->getRecords();
-        $this->assertEquals($expectedLevel, $record['level']);
-    }
-
-    public function logMethodProvider()
-    {
-        return array(
-            // monolog methods
-            array('addDebug',     Logger::DEBUG),
-            array('addInfo',      Logger::INFO),
-            array('addNotice',    Logger::NOTICE),
-            array('addWarning',   Logger::WARNING),
-            array('addError',     Logger::ERROR),
-            array('addCritical',  Logger::CRITICAL),
-            array('addAlert',     Logger::ALERT),
-            array('addEmergency', Logger::EMERGENCY),
-
-            // ZF/Sf2 compat methods
-            array('debug',  Logger::DEBUG),
-            array('info',   Logger::INFO),
-            array('notice', Logger::NOTICE),
-            array('warn',   Logger::WARNING),
-            array('err',    Logger::ERROR),
-            array('crit',   Logger::CRITICAL),
-            array('alert',  Logger::ALERT),
-            array('emerg',  Logger::EMERGENCY),
-        );
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php b/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php
deleted file mode 100644
index 5adb505..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class GitProcessorTest extends TestCase
-{
-    /**
-     * @covers Monolog\Processor\GitProcessor::__invoke
-     */
-    public function testProcessor()
-    {
-        $processor = new GitProcessor();
-        $record = $processor($this->getRecord());
-
-        $this->assertArrayHasKey('git', $record['extra']);
-        $this->assertTrue(!is_array($record['extra']['git']['branch']));
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php b/vendor/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php
deleted file mode 100644
index 0dd411d..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Acme;
-
-class Tester
-{
-    public function test($handler, $record)
-    {
-        $handler->handle($record);
-    }
-}
-
-function tester($handler, $record)
-{
-    $handler->handle($record);
-}
-
-namespace Monolog\Processor;
-
-use Monolog\Logger;
-use Monolog\TestCase;
-use Monolog\Handler\TestHandler;
-
-class IntrospectionProcessorTest extends TestCase
-{
-    public function getHandler()
-    {
-        $processor = new IntrospectionProcessor();
-        $handler = new TestHandler();
-        $handler->pushProcessor($processor);
-
-        return $handler;
-    }
-
-    public function testProcessorFromClass()
-    {
-        $handler = $this->getHandler();
-        $tester = new \Acme\Tester;
-        $tester->test($handler, $this->getRecord());
-        list($record) = $handler->getRecords();
-        $this->assertEquals(__FILE__, $record['extra']['file']);
-        $this->assertEquals(18, $record['extra']['line']);
-        $this->assertEquals('Acme\Tester', $record['extra']['class']);
-        $this->assertEquals('test', $record['extra']['function']);
-    }
-
-    public function testProcessorFromFunc()
-    {
-        $handler = $this->getHandler();
-        \Acme\tester($handler, $this->getRecord());
-        list($record) = $handler->getRecords();
-        $this->assertEquals(__FILE__, $record['extra']['file']);
-        $this->assertEquals(24, $record['extra']['line']);
-        $this->assertEquals(null, $record['extra']['class']);
-        $this->assertEquals('Acme\tester', $record['extra']['function']);
-    }
-
-    public function testLevelTooLow()
-    {
-        $input = array(
-            'level' => Logger::DEBUG,
-            'extra' => array(),
-        );
-
-        $expected = $input;
-
-        $processor = new IntrospectionProcessor(Logger::CRITICAL);
-        $actual = $processor($input);
-
-        $this->assertEquals($expected, $actual);
-    }
-
-    public function testLevelEqual()
-    {
-        $input = array(
-            'level' => Logger::CRITICAL,
-            'extra' => array(),
-        );
-
-        $expected = $input;
-        $expected['extra'] = array(
-            'file' => null,
-            'line' => null,
-            'class' => 'ReflectionMethod',
-            'function' => 'invokeArgs',
-        );
-
-        $processor = new IntrospectionProcessor(Logger::CRITICAL);
-        $actual = $processor($input);
-
-        $this->assertEquals($expected, $actual);
-    }
-
-    public function testLevelHigher()
-    {
-        $input = array(
-            'level' => Logger::EMERGENCY,
-            'extra' => array(),
-        );
-
-        $expected = $input;
-        $expected['extra'] = array(
-            'file' => null,
-            'line' => null,
-            'class' => 'ReflectionMethod',
-            'function' => 'invokeArgs',
-        );
-
-        $processor = new IntrospectionProcessor(Logger::CRITICAL);
-        $actual = $processor($input);
-
-        $this->assertEquals($expected, $actual);
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php b/vendor/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php
deleted file mode 100644
index eb66614..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class MemoryPeakUsageProcessorTest extends TestCase
-{
-    /**
-     * @covers Monolog\Processor\MemoryPeakUsageProcessor::__invoke
-     * @covers Monolog\Processor\MemoryProcessor::formatBytes
-     */
-    public function testProcessor()
-    {
-        $processor = new MemoryPeakUsageProcessor();
-        $record = $processor($this->getRecord());
-        $this->assertArrayHasKey('memory_peak_usage', $record['extra']);
-        $this->assertRegExp('#[0-9.]+ (M|K)?B$#', $record['extra']['memory_peak_usage']);
-    }
-
-    /**
-     * @covers Monolog\Processor\MemoryPeakUsageProcessor::__invoke
-     * @covers Monolog\Processor\MemoryProcessor::formatBytes
-     */
-    public function testProcessorWithoutFormatting()
-    {
-        $processor = new MemoryPeakUsageProcessor(true, false);
-        $record = $processor($this->getRecord());
-        $this->assertArrayHasKey('memory_peak_usage', $record['extra']);
-        $this->assertInternalType('int', $record['extra']['memory_peak_usage']);
-        $this->assertGreaterThan(0, $record['extra']['memory_peak_usage']);
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php b/vendor/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php
deleted file mode 100644
index 4692dbf..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class MemoryUsageProcessorTest extends TestCase
-{
-    /**
-     * @covers Monolog\Processor\MemoryUsageProcessor::__invoke
-     * @covers Monolog\Processor\MemoryProcessor::formatBytes
-     */
-    public function testProcessor()
-    {
-        $processor = new MemoryUsageProcessor();
-        $record = $processor($this->getRecord());
-        $this->assertArrayHasKey('memory_usage', $record['extra']);
-        $this->assertRegExp('#[0-9.]+ (M|K)?B$#', $record['extra']['memory_usage']);
-    }
-
-    /**
-     * @covers Monolog\Processor\MemoryUsageProcessor::__invoke
-     * @covers Monolog\Processor\MemoryProcessor::formatBytes
-     */
-    public function testProcessorWithoutFormatting()
-    {
-        $processor = new MemoryUsageProcessor(true, false);
-        $record = $processor($this->getRecord());
-        $this->assertArrayHasKey('memory_usage', $record['extra']);
-        $this->assertInternalType('int', $record['extra']['memory_usage']);
-        $this->assertGreaterThan(0, $record['extra']['memory_usage']);
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php b/vendor/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php
deleted file mode 100644
index 458d2a3..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class ProcessIdProcessorTest extends TestCase
-{
-    /**
-     * @covers Monolog\Processor\ProcessIdProcessor::__invoke
-     */
-    public function testProcessor()
-    {
-        $processor = new ProcessIdProcessor();
-        $record = $processor($this->getRecord());
-        $this->assertArrayHasKey('process_id', $record['extra']);
-        $this->assertInternalType('int', $record['extra']['process_id']);
-        $this->assertGreaterThan(0, $record['extra']['process_id']);
-        $this->assertEquals(getmypid(), $record['extra']['process_id']);
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php b/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php
deleted file mode 100644
index 81bfbdc..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-class PsrLogMessageProcessorTest extends \PHPUnit_Framework_TestCase
-{
-    /**
-     * @dataProvider getPairs
-     */
-    public function testReplacement($val, $expected)
-    {
-        $proc = new PsrLogMessageProcessor;
-
-        $message = $proc(array(
-            'message' => '{foo}',
-            'context' => array('foo' => $val)
-        ));
-        $this->assertEquals($expected, $message['message']);
-    }
-
-    public function getPairs()
-    {
-        return array(
-            array('foo',    'foo'),
-            array('3',      '3'),
-            array(3,        '3'),
-            array(null,     ''),
-            array(true,     '1'),
-            array(false,    ''),
-            array(new \stdClass, '[object stdClass]'),
-            array(array(), '[array]'),
-        );
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php b/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php
deleted file mode 100644
index 851a9dc..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class TagProcessorTest extends TestCase
-{
-    /**
-     * @covers Monolog\Processor\TagProcessor::__invoke
-     */
-    public function testProcessor()
-    {
-        $tags = array(1, 2, 3);
-        $processor = new TagProcessor($tags);
-        $record = $processor($this->getRecord());
-
-        $this->assertEquals($tags, $record['extra']['tags']);
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php b/vendor/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php
deleted file mode 100644
index 7ced62c..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class UidProcessorTest extends TestCase
-{
-    /**
-     * @covers Monolog\Processor\UidProcessor::__invoke
-     */
-    public function testProcessor()
-    {
-        $processor = new UidProcessor();
-        $record = $processor($this->getRecord());
-        $this->assertArrayHasKey('uid', $record['extra']);
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php b/vendor/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php
deleted file mode 100644
index dba8941..0000000
--- a/vendor/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class WebProcessorTest extends TestCase
-{
-    public function testProcessor()
-    {
-        $server = array(
-            'REQUEST_URI'    => 'A',
-            'REMOTE_ADDR'    => 'B',
-            'REQUEST_METHOD' => 'C',
-            'HTTP_REFERER'   => 'D',
-            'SERVER_NAME'    => 'F',
-            'UNIQUE_ID'      => 'G',
-        );
-
-        $processor = new WebProcessor($server);
-        $record = $processor($this->getRecord());
-        $this->assertEquals($server['REQUEST_URI'], $record['extra']['url']);
-        $this->assertEquals($server['REMOTE_ADDR'], $record['extra']['ip']);
-        $this->assertEquals($server['REQUEST_METHOD'], $record['extra']['http_method']);
-        $this->assertEquals($server['HTTP_REFERER'], $record['extra']['referrer']);
-        $this->assertEquals($server['SERVER_NAME'], $record['extra']['server']);
-        $this->assertEquals($server['UNIQUE_ID'], $record['extra']['unique_id']);
-    }
-
-    public function testProcessorDoNothingIfNoRequestUri()
-    {
-        $server = array(
-            'REMOTE_ADDR'    => 'B',
-            'REQUEST_METHOD' => 'C',
-        );
-        $processor = new WebProcessor($server);
-        $record = $processor($this->getRecord());
-        $this->assertEmpty($record['extra']);
-    }
-
-    public function testProcessorReturnNullIfNoHttpReferer()
-    {
-        $server = array(
-            'REQUEST_URI'    => 'A',
-            'REMOTE_ADDR'    => 'B',
-            'REQUEST_METHOD' => 'C',
-            'SERVER_NAME'    => 'F',
-        );
-        $processor = new WebProcessor($server);
-        $record = $processor($this->getRecord());
-        $this->assertNull($record['extra']['referrer']);
-    }
-
-    public function testProcessorDoesNotAddUniqueIdIfNotPresent()
-    {
-        $server = array(
-            'REQUEST_URI'    => 'A',
-            'REMOTE_ADDR'    => 'B',
-            'REQUEST_METHOD' => 'C',
-            'SERVER_NAME'    => 'F',
-        );
-        $processor = new WebProcessor($server);
-        $record = $processor($this->getRecord());
-        $this->assertFalse(isset($record['extra']['unique_id']));
-    }
-
-    public function testProcessorAddsOnlyRequestedExtraFields()
-    {
-        $server = array(
-            'REQUEST_URI'    => 'A',
-            'REMOTE_ADDR'    => 'B',
-            'REQUEST_METHOD' => 'C',
-            'SERVER_NAME'    => 'F',
-        );
-
-        $processor = new WebProcessor($server, array('url', 'http_method'));
-        $record = $processor($this->getRecord());
-
-        $this->assertSame(array('url' => 'A', 'http_method' => 'C'), $record['extra']);
-    }
-
-    /**
-     * @expectedException UnexpectedValueException
-     */
-    public function testInvalidData()
-    {
-        new WebProcessor(new \stdClass);
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/PsrLogCompatTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/PsrLogCompatTest.php b/vendor/monolog/monolog/tests/Monolog/PsrLogCompatTest.php
deleted file mode 100644
index ab89944..0000000
--- a/vendor/monolog/monolog/tests/Monolog/PsrLogCompatTest.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-use Monolog\Handler\TestHandler;
-use Monolog\Formatter\LineFormatter;
-use Monolog\Processor\PsrLogMessageProcessor;
-use Psr\Log\Test\LoggerInterfaceTest;
-
-class PsrLogCompatTest extends LoggerInterfaceTest
-{
-    private $handler;
-
-    public function getLogger()
-    {
-        $logger = new Logger('foo');
-        $logger->pushHandler($handler = new TestHandler);
-        $logger->pushProcessor(new PsrLogMessageProcessor);
-        $handler->setFormatter(new LineFormatter('%level_name% %message%'));
-
-        $this->handler = $handler;
-
-        return $logger;
-    }
-
-    public function getLogs()
-    {
-        $convert = function ($record) {
-            $lower = function ($match) {
-                return strtolower($match[0]);
-            };
-
-            return preg_replace_callback('{^[A-Z]+}', $lower, $record['formatted']);
-        };
-
-        return array_map($convert, $this->handler->getRecords());
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/RegistryTest.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/RegistryTest.php b/vendor/monolog/monolog/tests/Monolog/RegistryTest.php
deleted file mode 100644
index 29925f8..0000000
--- a/vendor/monolog/monolog/tests/Monolog/RegistryTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-
-class RegistryTest extends \PHPUnit_Framework_TestCase
-{
-    protected function setUp()
-    {
-        Registry::clear();
-    }
-
-    /**
-     * @dataProvider hasLoggerProvider
-     * @covers Monolog\Registry::hasLogger
-     */
-    public function testHasLogger(array $loggersToAdd, array $loggersToCheck, array $expectedResult)
-    {
-        foreach ($loggersToAdd as $loggerToAdd) {
-            Registry::addLogger($loggerToAdd);
-        }
-        foreach ($loggersToCheck as $index => $loggerToCheck) {
-            $this->assertSame($expectedResult[$index], Registry::hasLogger($loggerToCheck));
-        }
-    }
-
-    public function hasLoggerProvider()
-    {
-        $logger1 = new Logger('test1');
-        $logger2 = new Logger('test2');
-        $logger3 = new Logger('test3');
-
-        return array(
-            // only instances
-            array(
-                array($logger1),
-                array($logger1, $logger2),
-                array(true, false),
-            ),
-            // only names
-            array(
-                array($logger1),
-                array('test1', 'test2'),
-                array(true, false),
-            ),
-            // mixed case
-            array(
-                array($logger1, $logger2),
-                array('test1', $logger2, 'test3', $logger3),
-                array(true, true, false, false),
-            ),
-        );
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/Monolog/TestCase.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/Monolog/TestCase.php b/vendor/monolog/monolog/tests/Monolog/TestCase.php
deleted file mode 100644
index cae7934..0000000
--- a/vendor/monolog/monolog/tests/Monolog/TestCase.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-class TestCase extends \PHPUnit_Framework_TestCase
-{
-    /**
-     * @return array Record
-     */
-    protected function getRecord($level = Logger::WARNING, $message = 'test', $context = array())
-    {
-        return array(
-            'message' => $message,
-            'context' => $context,
-            'level' => $level,
-            'level_name' => Logger::getLevelName($level),
-            'channel' => 'test',
-            'datetime' => \DateTime::createFromFormat('U.u', sprintf('%.6F', microtime(true))),
-            'extra' => array(),
-        );
-    }
-
-    /**
-     * @return array
-     */
-    protected function getMultipleRecords()
-    {
-        return array(
-            $this->getRecord(Logger::DEBUG, 'debug message 1'),
-            $this->getRecord(Logger::DEBUG, 'debug message 2'),
-            $this->getRecord(Logger::INFO, 'information'),
-            $this->getRecord(Logger::WARNING, 'warning'),
-            $this->getRecord(Logger::ERROR, 'error')
-        );
-    }
-
-    /**
-     * @return Monolog\Formatter\FormatterInterface
-     */
-    protected function getIdentityFormatter()
-    {
-        $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
-        $formatter->expects($this->any())
-            ->method('format')
-            ->will($this->returnCallback(function ($record) { return $record['message']; }));
-
-        return $formatter;
-    }
-}

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/monolog/monolog/tests/bootstrap.php
----------------------------------------------------------------------
diff --git a/vendor/monolog/monolog/tests/bootstrap.php b/vendor/monolog/monolog/tests/bootstrap.php
deleted file mode 100644
index b78740e..0000000
--- a/vendor/monolog/monolog/tests/bootstrap.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j....@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-$loader = require __DIR__ . "/../vendor/autoload.php";
-$loader->addPsr4('Monolog\\', __DIR__.'/Monolog');
-
-date_default_timezone_set('UTC');

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nesbot/carbon/.editorconfig
----------------------------------------------------------------------
diff --git a/vendor/nesbot/carbon/.editorconfig b/vendor/nesbot/carbon/.editorconfig
deleted file mode 100644
index 1533dae..0000000
--- a/vendor/nesbot/carbon/.editorconfig
+++ /dev/null
@@ -1,14 +0,0 @@
-root = true
-
-[*]
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[*.php]
-charset = utf-8
-indent_style = space
-indent_size = 4
-
-[composer.json]
-indent_style = space
-indent_size = 2

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nesbot/carbon/LICENSE
----------------------------------------------------------------------
diff --git a/vendor/nesbot/carbon/LICENSE b/vendor/nesbot/carbon/LICENSE
deleted file mode 100644
index 6de45eb..0000000
--- a/vendor/nesbot/carbon/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (C) Brian Nesbitt
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.