From cc99663d0129093a95d588cc510720f4fcfbf1ac Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Wed, 29 Jul 2020 19:33:45 +0100 Subject: [PATCH] #911 - Move out Test component into separate package --- .../Test/Codeception/FunctionalTestCase.php | 26 - .../Test/Codeception/ModelTestCase.php | 26 - .../Phalcon/Test/Codeception/UnitTestCase.php | 56 - Library/Phalcon/Test/FunctionalTestCase.php | 31 - Library/Phalcon/Test/ModelTestCase.php | 30 - .../Test/PHPUnit/FunctionalTestCase.php | 27 - .../Phalcon/Test/PHPUnit/ModelTestCase.php | 27 - Library/Phalcon/Test/PHPUnit/UnitTestCase.php | 46 - .../Test/Traits/FunctionalTestCase.php | 290 -- Library/Phalcon/Test/Traits/ModelTestCase.php | 151 - Library/Phalcon/Test/Traits/ResultSet.php | 127 - Library/Phalcon/Test/Traits/UnitTestCase.php | 198 -- Library/Phalcon/Test/UnitTestCase.php | 32 - composer.json | 22 +- composer.lock | 2515 +++++++++++------ .../Codeception/FunctionalTestCaseTest.php | 67 - .../Test/Codeception/ModelTestCaseTest.php | 67 - .../Test/Codeception/UnitTestCaseTest.php | 66 - tests/unit/Test/FunctionalTestCaseTest.php | 42 - tests/unit/Test/ModelTestCaseTest.php | 42 - .../Test/PHPUnit/FunctionalTestCaseTest.php | 49 - tests/unit/Test/PHPUnit/ModelTestCaseTest.php | 49 - tests/unit/Test/PHPUnit/UnitTestCaseTest.php | 49 - tests/unit/Test/Traits/ModelTestCaseTest.php | 116 - tests/unit/Test/Traits/ResultSetTest.php | 128 - tests/unit/Test/Traits/UnitTestCaseTest.php | 57 - tests/unit/Test/UnitTestCaseTest.php | 42 - 27 files changed, 1660 insertions(+), 2718 deletions(-) delete mode 100644 Library/Phalcon/Test/Codeception/FunctionalTestCase.php delete mode 100644 Library/Phalcon/Test/Codeception/ModelTestCase.php delete mode 100644 Library/Phalcon/Test/Codeception/UnitTestCase.php delete mode 100644 Library/Phalcon/Test/FunctionalTestCase.php delete mode 100644 Library/Phalcon/Test/ModelTestCase.php delete mode 100644 Library/Phalcon/Test/PHPUnit/FunctionalTestCase.php delete mode 100644 Library/Phalcon/Test/PHPUnit/ModelTestCase.php delete mode 100644 Library/Phalcon/Test/PHPUnit/UnitTestCase.php delete mode 100644 Library/Phalcon/Test/Traits/FunctionalTestCase.php delete mode 100644 Library/Phalcon/Test/Traits/ModelTestCase.php delete mode 100644 Library/Phalcon/Test/Traits/ResultSet.php delete mode 100644 Library/Phalcon/Test/Traits/UnitTestCase.php delete mode 100644 Library/Phalcon/Test/UnitTestCase.php delete mode 100644 tests/unit/Test/Codeception/FunctionalTestCaseTest.php delete mode 100644 tests/unit/Test/Codeception/ModelTestCaseTest.php delete mode 100644 tests/unit/Test/Codeception/UnitTestCaseTest.php delete mode 100644 tests/unit/Test/FunctionalTestCaseTest.php delete mode 100644 tests/unit/Test/ModelTestCaseTest.php delete mode 100644 tests/unit/Test/PHPUnit/FunctionalTestCaseTest.php delete mode 100644 tests/unit/Test/PHPUnit/ModelTestCaseTest.php delete mode 100644 tests/unit/Test/PHPUnit/UnitTestCaseTest.php delete mode 100644 tests/unit/Test/Traits/ModelTestCaseTest.php delete mode 100644 tests/unit/Test/Traits/ResultSetTest.php delete mode 100644 tests/unit/Test/Traits/UnitTestCaseTest.php delete mode 100644 tests/unit/Test/UnitTestCaseTest.php diff --git a/Library/Phalcon/Test/Codeception/FunctionalTestCase.php b/Library/Phalcon/Test/Codeception/FunctionalTestCase.php deleted file mode 100644 index d825544d5..000000000 --- a/Library/Phalcon/Test/Codeception/FunctionalTestCase.php +++ /dev/null @@ -1,26 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\Codeception; - -use Phalcon\Test\Traits\FunctionalTestCase as FunctionalTestCaseTrait; - -class FunctionalTestCase extends ModelTestCase -{ - use FunctionalTestCaseTrait; -} diff --git a/Library/Phalcon/Test/Codeception/ModelTestCase.php b/Library/Phalcon/Test/Codeception/ModelTestCase.php deleted file mode 100644 index e01aad7bb..000000000 --- a/Library/Phalcon/Test/Codeception/ModelTestCase.php +++ /dev/null @@ -1,26 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\Codeception; - -use Phalcon\Test\Traits\ModelTestCase as ModelTestCaseTrait; - -class ModelTestCase extends UnitTestCase -{ - use ModelTestCaseTrait; -} diff --git a/Library/Phalcon/Test/Codeception/UnitTestCase.php b/Library/Phalcon/Test/Codeception/UnitTestCase.php deleted file mode 100644 index 4e1551d5e..000000000 --- a/Library/Phalcon/Test/Codeception/UnitTestCase.php +++ /dev/null @@ -1,56 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\Codeception; - -use Codeception\Test\Unit; - -use Phalcon\Test\Traits\UnitTestCase as UnitTestCaseTrait; -use UnitTester; - -class UnitTestCase extends Unit -{ - use UnitTestCaseTrait; - - - /** - * UnitTester Object - * @var UnitTester - */ - protected $tester; - - /** - * Standard Setup Method For PHPUnit. Calling setUpPhalcon Here to Maintain Codeception's _before Without a call - * to parent::_before - */ - protected function setUp() - { - $this->setUpPhalcon(); - parent::setUp(); - } - - /** - * Standard Tear Down Method For PHPUnit. Calling tearDownPhalcon Here to Maintain Codeception's _after - * Without a call to parent::_before - */ - protected function tearDown() - { - $this->tearDownPhalcon(); - parent::tearDown(); - } -} diff --git a/Library/Phalcon/Test/FunctionalTestCase.php b/Library/Phalcon/Test/FunctionalTestCase.php deleted file mode 100644 index 9a6823b6d..000000000 --- a/Library/Phalcon/Test/FunctionalTestCase.php +++ /dev/null @@ -1,31 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test; - -use Phalcon\Test\PHPUnit\FunctionalTestCase as FunctionalTest; - -/** - * Class serves as a placeholder for backwards compatibility - * @package Phalcon\Test - */ -abstract class FunctionalTestCase extends FunctionalTest -{ - -} diff --git a/Library/Phalcon/Test/ModelTestCase.php b/Library/Phalcon/Test/ModelTestCase.php deleted file mode 100644 index e52df796c..000000000 --- a/Library/Phalcon/Test/ModelTestCase.php +++ /dev/null @@ -1,30 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test; - -use Phalcon\Test\PHPUnit\ModelTestCase as ModelTest; - -/** - * Class serves as a placeholder for backwards compatibility - * @package Phalcon\Test - */ -abstract class ModelTestCase extends ModelTest -{ - -} diff --git a/Library/Phalcon/Test/PHPUnit/FunctionalTestCase.php b/Library/Phalcon/Test/PHPUnit/FunctionalTestCase.php deleted file mode 100644 index 423cb7c78..000000000 --- a/Library/Phalcon/Test/PHPUnit/FunctionalTestCase.php +++ /dev/null @@ -1,27 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\PHPUnit; - -use Phalcon\Test\Traits\FunctionalTestCase as FunctionalTestCaseTrait; - -abstract class FunctionalTestCase extends ModelTestCase -{ - use FunctionalTestCaseTrait; -} diff --git a/Library/Phalcon/Test/PHPUnit/ModelTestCase.php b/Library/Phalcon/Test/PHPUnit/ModelTestCase.php deleted file mode 100644 index b18369408..000000000 --- a/Library/Phalcon/Test/PHPUnit/ModelTestCase.php +++ /dev/null @@ -1,27 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\PHPUnit; - -use Phalcon\Test\Traits\ModelTestCase as ModelTestCaseTrait; - -abstract class ModelTestCase extends UnitTestCase -{ - use ModelTestCaseTrait; -} diff --git a/Library/Phalcon/Test/PHPUnit/UnitTestCase.php b/Library/Phalcon/Test/PHPUnit/UnitTestCase.php deleted file mode 100644 index 50ff9d2e4..000000000 --- a/Library/Phalcon/Test/PHPUnit/UnitTestCase.php +++ /dev/null @@ -1,46 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\PHPUnit; - -use Phalcon\Test\Traits\UnitTestCase as UnitTestCaseTrait; -use PHPUnit\Framework\TestCase as TestCase; -use Phalcon\Di\InjectionAwareInterface; - -/** - * Class UnitTestCase - * - * @package Phalcon\Test - */ -abstract class UnitTestCase extends TestCase implements InjectionAwareInterface -{ - use UnitTestCaseTrait; - - protected function setUp() - { - $this->setUpPhalcon(); - } - - protected function tearDown() - { - $this->tearDownPhalcon(); - - parent::tearDown(); - } -} diff --git a/Library/Phalcon/Test/Traits/FunctionalTestCase.php b/Library/Phalcon/Test/Traits/FunctionalTestCase.php deleted file mode 100644 index 09288beeb..000000000 --- a/Library/Phalcon/Test/Traits/FunctionalTestCase.php +++ /dev/null @@ -1,290 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\Traits; - -use Phalcon\Escaper as PhEscaper; -use Phalcon\Mvc\Dispatcher as PhDispatcher; -use Phalcon\Mvc\Application as PhApplication; -use Phalcon\DiInterface; - -trait FunctionalTestCase -{ - protected $application; - - /** - * This method is called before a test is executed. - */ - protected function setUpPhalcon() - { - parent::setUpPhalcon(); - - // Set the dispatcher - $this->di->setShared( - 'dispatcher', - function () { - $dispatcher = new PhDispatcher(); - - $dispatcher->setControllerName('test'); - $dispatcher->setActionName('empty'); - $dispatcher->setParams([]); - - return $dispatcher; - } - ); - - $this->di->set( - 'escaper', - function () { - return new PhEscaper(); - } - ); - - if ($this->di instanceof DiInterface) { - $this->application = new PhApplication($this->di); - } - } - - /** - * Ensures that each test has it's own DI and all globals are purged - * - * @return void - */ - protected function tearDownPhalcon() - { - $this->di->reset(); - - $this->application = null; - - $_SESSION = []; - $_GET = []; - $_POST = []; - $_COOKIE = []; - $_REQUEST = []; - $_FILES = []; - } - - /** - * Dispatches a given url and sets the response object accordingly - * - * @param string $url The request url - * @return void - */ - protected function dispatch($url) - { - $this->di->setShared( - 'response', - $this->application->handle($url) - ); - } - - /** - * Assert that the last dispatched controller matches the given controller class name - * - * @param string $expected The expected controller name - * @throws \PHPUnit\Framework\ExpectationFailedException - */ - public function assertController($expected) - { - $dispatcher = $this->di->getShared('dispatcher'); - - $actual = $dispatcher->getControllerName(); - - if ($actual != $expected) { - throw new \PHPUnit\Framework\ExpectationFailedException( - sprintf( - 'Failed asserting Controller name "%s", actual Controller name is "%s"', - $expected, - $actual - ) - ); - } - - $this->assertEquals($expected, $actual); - } - - /** - * Assert that the last dispatched action matches the given action name - * - * @param string $expected The expected action name - * @throws \PHPUnit\Framework\ExpectationFailedException - */ - public function assertAction($expected) - { - $dispatcher = $this->di->getShared('dispatcher'); - - $actual = $dispatcher->getActionName(); - - if ($actual != $expected) { - throw new \PHPUnit\Framework\ExpectationFailedException( - sprintf( - 'Failed asserting Action name "%s", actual Action name is "%s"', - $expected, - $actual - ) - ); - } - - $this->assertEquals($expected, $actual); - } - - /** - * Assert that the response headers contains the given array - * - * $expected = ['Content-Type' => 'application/json'] - * - * - * @param array $expected The expected headers - * @throws \PHPUnit\Framework\ExpectationFailedException - */ - public function assertHeader(array $expected) - { - $response = $this->di->getShared('response'); - - $headers = $response->getHeaders(); - - foreach ($expected as $expectedField => $expectedValue) { - $actualValue = $headers->get($expectedField); - - if ($actualValue != $expectedValue) { - throw new \PHPUnit\Framework\ExpectationFailedException( - sprintf( - 'Failed asserting "%s" has a value of "%s", actual "%s" header value is "%s"', - $expectedField, - $expectedValue, - $expectedField, - $actualValue - ) - ); - } - - $this->assertEquals($expectedValue, $actualValue); - } - } - - /** - * Asserts that the response code matches the given one - * - * @param string $expected the expected response code - * @throws \PHPUnit\Framework\ExpectationFailedException - */ - public function assertResponseCode($expected) - { - // convert to string if int - if (is_integer($expected)) { - $expected = (string) $expected; - } - - $response = $this->di->getShared('response'); - - $headers = $response->getHeaders(); - - $actualValue = $headers->get('Status'); - - if (empty($actualValue) || stristr($actualValue, $expected) === false) { - throw new \PHPUnit\Framework\ExpectationFailedException( - sprintf( - 'Failed asserting response code is "%s", actual response status is "%s"', - $expected, - $actualValue - ) - ); - } - - $this->assertContains($expected, $actualValue); - } - - /** - * Asserts that the dispatch is forwarded - * - * @throws \PHPUnit\Framework\ExpectationFailedException - */ - public function assertDispatchIsForwarded() - { - /* @var $dispatcher \Phalcon\Mvc\Dispatcher */ - $dispatcher = $this->di->getShared('dispatcher'); - - $actual = $dispatcher->wasForwarded(); - - if (!$actual) { - throw new \PHPUnit\Framework\ExpectationFailedException( - 'Failed asserting dispatch was forwarded' - ); - } - - $this->assertTrue($actual); - } - - /** - * Assert location redirect - * - * @param string $location - * @throws \PHPUnit\Framework\ExpectationFailedException - */ - public function assertRedirectTo($location) - { - $response = $this->di->getShared('response'); - - $headers = $response->getHeaders(); - - $actualLocation = $headers->get('Location'); - - if (!$actualLocation) { - throw new \PHPUnit\Framework\ExpectationFailedException( - 'Failed asserting response caused a redirect' - ); - } - - if ($actualLocation !== $location) { - throw new \PHPUnit\Framework\ExpectationFailedException( - sprintf( - 'Failed asserting response redirects to "%s". It redirects to "%s".', - $location, - $actualLocation - ) - ); - } - - $this->assertEquals($location, $actualLocation); - } - - /** - * Convenience method to retrieve response content - * - * @return string - */ - public function getContent() - { - $response = $this->di->getShared('response'); - - return $response->getContent(); - } - - /** - * Assert response content contains string - * - * @param string $string - */ - public function assertResponseContentContains($string) - { - $this->assertContains( - $string, - $this->getContent() - ); - } -} diff --git a/Library/Phalcon/Test/Traits/ModelTestCase.php b/Library/Phalcon/Test/Traits/ModelTestCase.php deleted file mode 100644 index 836ef5174..000000000 --- a/Library/Phalcon/Test/Traits/ModelTestCase.php +++ /dev/null @@ -1,151 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\Traits; - -use Phalcon\Config; -use Phalcon\Mvc\Model\Manager as PhModelManager; -use Phalcon\Mvc\Model\Metadata\Memory as PhMetadataMemory; - -trait ModelTestCase -{ - /** - * This method is called before a test is executed. - */ - protected function setUpPhalcon() - { - parent::setUpPhalcon(); - - // Set Models manager - $this->di->set( - 'modelsManager', - function () { - return new PhModelManager(); - } - ); - - // Set Models metadata - $this->di->set( - 'modelsMetadata', - function () { - return new PhMetadataMemory(); - } - ); - - // Set the connection to the db (defaults to mysql) - $this->setDb(); - } - - /** - * Sets the database adapter in the DI container - * - * @param string $dbType Sets the database type for the test - * @return void - */ - protected function setDb($dbType = 'mysql') - { - if ($this->di->has('db')) { - $db = $this->di->get('db'); - $class = 'Phalcon\Db\Adapter\Pdo\\' . ucfirst($dbType); - if ($db instanceof $class) { - return $db; - } - } - - $config = $this->config ?: $this->getConfig(); - - // Set the connection to whatever we chose - $this->di->set( - 'db', - function () use ($dbType, $config) { - $params = isset($config['db'][$dbType]) ? $config['db'][$dbType] : $config['db']; - if ($params instanceof Config) { - $params = $params->toArray(); - } - - $class = 'Phalcon\Db\Adapter\Pdo\\' . ucfirst($dbType); - - $conn = new $class($params); - - return $conn; - } - ); - } - - /** - * Empties a table in the database. - * - * @param string $table - * @return boolean - */ - public function emptyTable($table) - { - $connection = $this->di->get('db'); - - $success = $connection->delete($table); - - return $success; - } - - /** - * Disables FOREIGN_KEY_CHECKS and truncates database table - * - * @param string $table table name - * @return bool result of truncate operation - */ - public function truncateTable($table) - { - /* @var $db \Phalcon\Db\Adapter\Pdo\Mysql */ - $db = $this->getDI()->get('db'); - - $db->execute("SET FOREIGN_KEY_CHECKS = 0"); - $success = $db->execute("TRUNCATE TABLE `$table`"); - $db->execute("SET FOREIGN_KEY_CHECKS = 1"); - - return $success; - } - - /** - * Populates a table with default data - * - * @param string $table - * @param null $records - */ - public function populateTable($table, $records = null) - { - // Empty the table first - $this->emptyTable($table); - - $connection = $this->di->get('db'); - $parts = explode('_', $table); - $suffix = ''; - - foreach ($parts as $part) { - $suffix .= ucfirst($part); - } - - $class = 'Phalcon\Test\Fixtures\\' . $suffix; - - $data = $class::get($records); - - foreach ($data as $record) { - $sql = "INSERT INTO {$table} VALUES " . $record; - $connection->execute($sql); - } - } -} diff --git a/Library/Phalcon/Test/Traits/ResultSet.php b/Library/Phalcon/Test/Traits/ResultSet.php deleted file mode 100644 index 3ac998f51..000000000 --- a/Library/Phalcon/Test/Traits/ResultSet.php +++ /dev/null @@ -1,127 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\Traits; - -use Phalcon\Mvc\Model\Resultset as phResultset; - -/** - * Trait ResultSet. Adds Ability To Mock DB ResultSet (Without Actual Connection To DB) - * - * The resulting mock is only intended to mock the basic functions of a resultset. - * - * @package Phalcon\Test\Traits - */ -trait ResultSet -{ - /** - * @param array $dataSet Mock Data Set To Use - * @param string $className ResultSet Class To Mimic (Defaults To Abstract ResultSet) - * - * @return \PHPUnit_Framework_MockObject_MockObject|\Phalcon\Mvc\Model\Resultset|\Phalcon\Mvc\Model\ResultsetInterface - */ - public function mockResultSet(array $dataSet, $className = phResultset::class) - { - /** @var \PHPUnit_Framework_TestCase $this */ - /** @var \PHPUnit_Framework_MockObject_MockObject $mockResultSet */ - - - $mockResultSet = $this->getMockBuilder($className) - ->disableOriginalConstructor() - ->setMethods( - [ - 'valid', - 'current', - 'key', - 'next', - 'toArray', - 'getFirst', - 'getLast', - 'serialize', - 'unserialize' - ] - )->getMockForAbstractClass(); - - //Work Around For Final Count Method - $reflectionMethod = new \ReflectionProperty('\Phalcon\Mvc\Model\Resultset', '_count'); - $reflectionMethod->setAccessible(true); - $reflectionMethod->setValue($mockResultSet, count($dataSet)); - - //Work Around For Final Seek - $reflectionProperty = new \ReflectionProperty('\Phalcon\Mvc\Model\Resultset', '_rows'); - $reflectionProperty->setAccessible(true); - $reflectionProperty->setValue($mockResultSet, $dataSet); - - $sharedData = new \stdClass(); - $sharedData->pos = 0; - $sharedData->data = $dataSet; - - $mockResultSet->method('getFirst') - ->willReturnCallback(function () use ($sharedData) { - if (empty($sharedData->data)) { - return false; - } - - $arrayKeys = array_keys($sharedData->data); - return $sharedData->data[$arrayKeys[0]]; - }); - - $mockResultSet->method('getLast') - ->willReturnCallback(function () use ($sharedData) { - if (empty($sharedData->data)) { - return false; - } - - return array_reverse($sharedData->data)[0]; - }); - - $mockResultSet->method('valid') - ->willReturnCallback( - function () use ($sharedData) { - return $sharedData->pos < count($sharedData->data); - } - ); - - $mockResultSet->method('current') - ->willReturnCallback( - function () use ($sharedData) { - return $sharedData->data[$sharedData->pos]; - } - ); - - $mockResultSet->method('key') - ->willReturnCallback( - function () use ($sharedData) { - return array_keys($sharedData->data)[$sharedData->pos]; - } - ); - - $mockResultSet->method('next') - ->willReturnCallback( - function () use ($sharedData) { - $sharedData->pos++; - } - ); - - $mockResultSet->method('toArray') - ->willReturn($dataSet); - - return $mockResultSet; - } -} diff --git a/Library/Phalcon/Test/Traits/UnitTestCase.php b/Library/Phalcon/Test/Traits/UnitTestCase.php deleted file mode 100644 index 66d285a66..000000000 --- a/Library/Phalcon/Test/Traits/UnitTestCase.php +++ /dev/null @@ -1,198 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\Traits; - -use Phalcon\Di; -use Phalcon\Config; -use Phalcon\Di\FactoryDefault; -use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Di\DiInterface; -use Phalcon\Escaper; -use Phalcon\Mvc\Url; -use Phalcon\Test\Traits\ResultSet; -use PHPUnit\Framework\TestCase as TestCase; - -trait UnitTestCase -{ - use ResultSet; - - /** - * Holds the configuration variables and other stuff - * I can use the DI container but for tests like the Translate - * we do not need the overhead - * - * @var Config|null - */ - protected $config; - - /** - * @var DiInterface - */ - protected $di; - - /** - * This method is called before a test is executed. - */ - protected function setUpPhalcon() - { - $this->checkExtension('phalcon'); - - // Reset the DI container - Di::reset(); - - // Instantiate a new DI container - $di = new Di(); - - // Set the URL - $di->set( - 'url', - function () { - $url = new Url(); - $url->setBaseUri('/'); - - return $url; - } - ); - - $di->set( - 'escaper', - function () { - return new Escaper(); - } - ); - - $this->di = $di; - } - - protected function tearDownPhalcon() - { - Di::reset(); - } - - /** - * Checks if a particular extension is loaded and if not it marks - * the tests skipped - * - * @param mixed $extension - */ - public function checkExtension($extension) - { - $message = function ($ext) { - sprintf('Warning: %s extension is not loaded', $ext); - }; - - if (is_array($extension)) { - foreach ($extension as $ext) { - if (!extension_loaded($ext)) { - $this->markTestSkipped($message($ext)); - break; - } - } - } elseif (!extension_loaded($extension)) { - $this->markTestSkipped($message($extension)); - } - } - - /** - * Returns a unique file name - * - * @param string $prefix A prefix for the file - * @param string $suffix A suffix for the file - * @return string - */ - protected function getFileName($prefix = '', $suffix = 'log') - { - $prefix = ($prefix) ? $prefix . '_' : ''; - $suffix = ($suffix) ? $suffix : 'log'; - - return uniqid($prefix, true) . '.' . $suffix; - } - - /** - * Removes a file from the system - * - * @param string $path - * @param string $fileName - */ - protected function cleanFile($path, $fileName) - { - $file = (substr($path, -1, 1) != "/") ? ($path . '/') : $path; - $file .= $fileName; - - $actual = file_exists($file); - - if ($actual) { - unlink($file); - } - } - - /** - * Sets the Config object. - * - * @param Config $config - * @return $this - */ - public function setConfig(Config $config) - { - $this->config = $config; - - return $this; - } - - /** - * Returns the Config object if any. - * - * @return null|Config - */ - public function getConfig() - { - if (!$this->config instanceof Config && $this->getDI()->has('config')) { - return $this->getDI()->get('config'); - } - - return $this->config; - } - - /** - * Sets the Dependency Injector. - * - * @see Injectable::setDI - * @param DiInterface $di - * @return void - */ - public function setDI(DiInterface $di) : void - { - $this->di = $di; - } - - /** - * Returns the internal Dependency Injector. - * - * @see Injectable::getDI - * @return DiInterface - */ - public function getDI() : DiInterface - { - if (!$this->di instanceof DiInterface) { - return Di::getDefault(); - } - - return $this->di; - } -} diff --git a/Library/Phalcon/Test/UnitTestCase.php b/Library/Phalcon/Test/UnitTestCase.php deleted file mode 100644 index 4d323a30e..000000000 --- a/Library/Phalcon/Test/UnitTestCase.php +++ /dev/null @@ -1,32 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test; - -use Phalcon\Test\PHPUnit\UnitTestCase as UnitTest; - -/** - * Class serves as a placeholder for backwards compatibility - * - * @package Phalcon\Test - */ -abstract class UnitTestCase extends UnitTest -{ - -} diff --git a/composer.json b/composer.json index 90a1dcfd1..b7bbb4404 100644 --- a/composer.json +++ b/composer.json @@ -7,13 +7,13 @@ "phalcon", "incubator" ], - "homepage": "https://phalconphp.com", + "homepage": "https://phalcon.io", "license": "BSD-3-Clause", "authors": [ { "name": "Phalcon Team", "email": "team@phalconphp.com", - "homepage": "https://phalconphp.com/en/team" + "homepage": "https://phalcon.io/en/team" }, { "name": "Contributors", @@ -23,34 +23,26 @@ "support": { "issues": "https://github.com/phalcon/incubator/issues", "source": "https://github.com/phalcon/incubator", - "forum": "https://forum.phalconphp.com/", - "docs": "https://docs.phalconphp.com/", - "irc": "irc://irc.freenode.org/phalconphp", - "rss" : "https://blog.phalconphp.com/rss", - "email": "support@phalconphp.com" + "forum": "https://forum.phalcon.io", + "docs": "https://docs.phalcon.io/latest", + "email": "support@phalcon.io" }, "require": { "php": ">=7.2", "ext-phalcon": "^4.0", "phalcon/incubator-acl": "^1.0.0-alpha.1", - "phalcon/incubator-session": "^1.0.0" + "phalcon/incubator-session": "^1.0.0", + "phalcon/incubator-test": "^1.0.0-alpha.1" }, "require-dev": { "phpdocumentor/reflection-docblock": "2.0.4", - "phpunit/phpunit": "^4.8", "squizlabs/php_codesniffer": "^2.9", - "codeception/codeception": "^2.5", - "codeception/mockery-module": "0.2.2", - "codeception/aerospike-module": "^1.0", - "codeception/specify": "^0.4", - "codeception/verify": "^0.3", "vlucas/phpdotenv": "^2.4", "phalcon/dd": "^1.1", "doctrine/instantiator": "1.0.5", "phalcon/ide-stubs": "^4.0" }, "suggest": { - "phalcon/ide-stubs": "Phalcon IDE Stubs", "duncan3dc/fork-helper": "To use extended class to access the beanstalk queue service", "swiftmailer/swiftmailer": "~5.2", "twig/twig": "~1.35|~2.0" diff --git a/composer.lock b/composer.lock index 919857021..925418e64 100644 --- a/composer.lock +++ b/composer.lock @@ -4,126 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b81e634d1d0b4959b916c84339ac460b", + "content-hash": "423a0902d0f7c2d95ca902c32f598a01", "packages": [ - { - "name": "phalcon/incubator-acl", - "version": "v1.0.0-alpha.1", - "source": { - "type": "git", - "url": "https://github.com/phalcon/incubator-acl.git", - "reference": "33b4e184ef9c99d355c20eb983e85621015c6d3f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phalcon/incubator-acl/zipball/33b4e184ef9c99d355c20eb983e85621015c6d3f", - "reference": "33b4e184ef9c99d355c20eb983e85621015c6d3f", - "shasum": "" - }, - "require": { - "ext-phalcon": "^4.0", - "php": ">=7.2" - }, - "require-dev": { - "codeception/codeception": "^4.1", - "codeception/module-asserts": "^1.0.0", - "mongodb/mongodb": "^1.6", - "phalcon/ide-stubs": "^4.0", - "phpstan/phpstan": "^0.12.18", - "squizlabs/php_codesniffer": "3.5.1", - "vimeo/psalm": "3.6.2" - }, - "type": "library", - "autoload": { - "psr-4": { - "Phalcon\\Incubator\\Acl\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Phalcon Team", - "email": "team@phalcon.io", - "homepage": "https://phalcon.io/en/team" - }, - { - "name": "Contributors", - "homepage": "https://github.com/phalcon/incubator-acl/graphs/contributors" - } - ], - "description": "Phalcon Incubator Access Control List", - "homepage": "https://phalcon.io", - "keywords": [ - "acl", - "framework", - "incubator", - "phalcon" - ], - "time": "2020-04-13T22:00:37+00:00" - }, - { - "name": "phalcon/incubator-session", - "version": "v1.0.0", - "source": { - "type": "git", - "url": "https://github.com/phalcon/incubator-session.git", - "reference": "68e6543c91789b5f79ca7e2c1f8c9ae4689bef14" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phalcon/incubator-session/zipball/68e6543c91789b5f79ca7e2c1f8c9ae4689bef14", - "reference": "68e6543c91789b5f79ca7e2c1f8c9ae4689bef14", - "shasum": "" - }, - "require": { - "ext-phalcon": "^4.0", - "php": ">=7.2" - }, - "require-dev": { - "codeception/codeception": "^4.1", - "codeception/module-asserts": "^1.0.0", - "mongodb/mongodb": "^1.6", - "phalcon/ide-stubs": "^4.0", - "phpstan/phpstan": "^0.12.18", - "squizlabs/php_codesniffer": "^3.5", - "vimeo/psalm": "^3.6" - }, - "type": "library", - "autoload": { - "psr-4": { - "Phalcon\\Incubator\\Session\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Phalcon Team", - "email": "team@phalcon.io", - "homepage": "https://phalcon.io/en/team" - }, - { - "name": "Contributors", - "homepage": "https://github.com/phalcon/incubator-session/graphs/contributors" - } - ], - "description": "Phalcon Incubator Sessions Adapters", - "homepage": "https://phalcon.io", - "keywords": [ - "framework", - "incubator", - "phalcon", - "session" - ], - "time": "2020-06-18T15:04:50+00:00" - } - ], - "packages-dev": [ { "name": "behat/gherkin", "version": "v4.6.2", @@ -183,107 +65,53 @@ ], "time": "2020-03-17T14:03:26+00:00" }, - { - "name": "codeception/aerospike-module", - "version": "v1.0.3", - "source": { - "type": "git", - "url": "https://github.com/Codeception/Aerospike-module.git", - "reference": "2c13bd3f981ecfa7486855546e3bfdea414bc5d6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Codeception/Aerospike-module/zipball/2c13bd3f981ecfa7486855546e3bfdea414bc5d6", - "reference": "2c13bd3f981ecfa7486855546e3bfdea414bc5d6", - "shasum": "" - }, - "require": { - "codeception/codeception": "^2 || ^3" - }, - "type": "library", - "autoload": { - "psr-4": { - "Codeception\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Bodnarchuk", - "email": "davert@codeception.com" - }, - { - "name": "Serghei Iakovlev", - "email": "serghei@codeception.com" - } - ], - "description": "Aerospike Module for Codeception. Integrates Aerospike into Codeception tests.", - "homepage": "https://github.com/Codeception/Aerospike-module/releases", - "keywords": [ - "aerospike", - "codeception", - "nosql", - "testing" - ], - "time": "2019-07-25T16:10:30+00:00" - }, { "name": "codeception/codeception", - "version": "2.5.6", + "version": "4.1.6", "source": { "type": "git", "url": "https://github.com/Codeception/Codeception.git", - "reference": "b83a9338296e706fab2ceb49de8a352fbca3dc98" + "reference": "5515b6a6c6f1e1c909aaff2e5f3a15c177dfd1a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/Codeception/zipball/b83a9338296e706fab2ceb49de8a352fbca3dc98", - "reference": "b83a9338296e706fab2ceb49de8a352fbca3dc98", + "url": "https://api.github.com/repos/Codeception/Codeception/zipball/5515b6a6c6f1e1c909aaff2e5f3a15c177dfd1a9", + "reference": "5515b6a6c6f1e1c909aaff2e5f3a15c177dfd1a9", "shasum": "" }, "require": { "behat/gherkin": "^4.4.0", - "codeception/phpunit-wrapper": "^6.0.9|^7.0.6", - "codeception/stub": "^2.0", + "codeception/lib-asserts": "^1.0", + "codeception/phpunit-wrapper": ">6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.1.1 | ^9.0", + "codeception/stub": "^2.0 | ^3.0", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", - "facebook/webdriver": ">=1.1.3 <2.0", - "guzzlehttp/guzzle": ">=4.1.4 <7.0", - "guzzlehttp/psr7": "~1.0", + "guzzlehttp/psr7": "~1.4", "php": ">=5.6.0 <8.0", - "symfony/browser-kit": ">=2.7 <5.0", - "symfony/console": ">=2.7 <5.0", - "symfony/css-selector": ">=2.7 <5.0", - "symfony/dom-crawler": ">=2.7 <5.0", - "symfony/event-dispatcher": ">=2.7 <5.0", - "symfony/finder": ">=2.7 <5.0", - "symfony/yaml": ">=2.7 <5.0" + "symfony/console": ">=2.7 <6.0", + "symfony/css-selector": ">=2.7 <6.0", + "symfony/event-dispatcher": ">=2.7 <6.0", + "symfony/finder": ">=2.7 <6.0", + "symfony/yaml": ">=2.7 <6.0" }, "require-dev": { + "codeception/module-asserts": "*@dev", + "codeception/module-cli": "*@dev", + "codeception/module-db": "*@dev", + "codeception/module-filesystem": "*@dev", + "codeception/module-phpbrowser": "*@dev", "codeception/specify": "~0.3", - "facebook/graph-sdk": "~5.3", - "flow/jsonpath": "~0.2", + "codeception/util-universalframework": "*@dev", "monolog/monolog": "~1.8", - "pda/pheanstalk": "~3.0", - "php-amqplib/php-amqplib": "~2.4", - "predis/predis": "^1.0", "squizlabs/php_codesniffer": "~2.0", - "symfony/process": ">=2.7 <5.0", - "vlucas/phpdotenv": "^3.0" + "symfony/process": ">=2.7 <6.0", + "vlucas/phpdotenv": "^2.0 | ^3.0 | ^4.0" }, "suggest": { - "aws/aws-sdk-php": "For using AWS Auth in REST module and Queue module", - "codeception/phpbuiltinserver": "Start and stop PHP built-in web server for your tests", "codeception/specify": "BDD-style code blocks", "codeception/verify": "BDD-style assertions", - "flow/jsonpath": "For using JSONPath in REST module", - "league/factory-muffin": "For DataFactory module", - "league/factory-muffin-faker": "For Faker support in DataFactory module", - "phpseclib/phpseclib": "for SFTP option in FTP Module", + "hoa/console": "For interactive console functionality", "stecman/symfony-console-completion": "For BASH autocompletion", "symfony/phpunit-bridge": "For phpunit-bridge support" }, @@ -320,30 +148,37 @@ "functional testing", "unit testing" ], - "time": "2019-04-24T11:28:19+00:00" + "funding": [ + { + "url": "https://opencollective.com/codeception", + "type": "open_collective" + } + ], + "time": "2020-06-07T16:31:51+00:00" }, { - "name": "codeception/mockery-module", - "version": "0.2.2", + "name": "codeception/lib-asserts", + "version": "1.12.0", "source": { "type": "git", - "url": "https://github.com/Codeception/MockeryModule.git", - "reference": "ab1c965290f8ac78507c4da0a78b1111d3aebab2" + "url": "https://github.com/Codeception/lib-asserts.git", + "reference": "acd0dc8b394595a74b58dcc889f72569ff7d8e71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/MockeryModule/zipball/ab1c965290f8ac78507c4da0a78b1111d3aebab2", - "reference": "ab1c965290f8ac78507c4da0a78b1111d3aebab2", + "url": "https://api.github.com/repos/Codeception/lib-asserts/zipball/acd0dc8b394595a74b58dcc889f72569ff7d8e71", + "reference": "acd0dc8b394595a74b58dcc889f72569ff7d8e71", "shasum": "" }, "require": { - "mockery/mockery": "~0.8" + "codeception/phpunit-wrapper": ">6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.0.3 | ^9.0", + "php": ">=5.6.0 <8.0" }, "type": "library", "autoload": { - "psr-4": { - "Codeception\\": "src" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -352,48 +187,54 @@ "authors": [ { "name": "Michael Bodnarchuk", - "email": "davert.php@mailican.com" + "email": "davert@mail.ua", + "homepage": "http://codegyre.com" }, { - "name": "Jáchym Toušek", - "email": "enumag@gmail.com" + "name": "Gintautas Miselis" } ], - "description": "Mockery Module for Codeception", - "time": "2015-09-24T19:28:29+00:00" + "description": "Assertion methods used by Codeception core and Asserts module", + "homepage": "http://codeception.com/", + "keywords": [ + "codeception" + ], + "time": "2020-04-17T18:20:46+00:00" }, { - "name": "codeception/phpunit-wrapper", - "version": "6.0.10", + "name": "codeception/lib-innerbrowser", + "version": "1.3.2", "source": { "type": "git", - "url": "https://github.com/Codeception/phpunit-wrapper.git", - "reference": "7057e599d97b02b4efb009681a43b327dbce138a" + "url": "https://github.com/Codeception/lib-innerbrowser.git", + "reference": "7bdcee4cf654cfeeedd00405edd4f06f85255659" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/7057e599d97b02b4efb009681a43b327dbce138a", - "reference": "7057e599d97b02b4efb009681a43b327dbce138a", + "url": "https://api.github.com/repos/Codeception/lib-innerbrowser/zipball/7bdcee4cf654cfeeedd00405edd4f06f85255659", + "reference": "7bdcee4cf654cfeeedd00405edd4f06f85255659", "shasum": "" }, "require": { - "phpunit/php-code-coverage": ">=2.2.4 <6.0", - "phpunit/phpunit": ">=4.8.28 <5.0.0 || >=5.6.3 <7.0", - "sebastian/comparator": ">1.1 <3.0", - "sebastian/diff": ">=1.4 <4.0" + "codeception/codeception": "*@dev", + "ext-dom": "*", + "ext-json": "*", + "ext-mbstring": "*", + "php": ">=5.6.0 <8.0", + "symfony/browser-kit": ">=2.7 <6.0", + "symfony/dom-crawler": ">=2.7 <6.0" }, - "replace": { - "codeception/phpunit-wrapper": "*" + "conflict": { + "codeception/codeception": "<4.0" }, "require-dev": { - "codeception/specify": "*", - "vlucas/phpdotenv": "^2.4" + "codeception/util-universalframework": "dev-master" }, "type": "library", "autoload": { - "psr-4": { - "Codeception\\PHPUnit\\": "src\\" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -401,39 +242,51 @@ ], "authors": [ { - "name": "Davert", - "email": "davert.php@resend.cc" + "name": "Michael Bodnarchuk", + "email": "davert@mail.ua", + "homepage": "http://codegyre.com" + }, + { + "name": "Gintautas Miselis" } ], - "description": "PHPUnit classes used by Codeception", - "time": "2018-06-20T20:08:14+00:00" + "description": "Parent library for all Codeception framework modules and PhpBrowser", + "homepage": "http://codeception.com/", + "keywords": [ + "codeception" + ], + "time": "2020-07-05T14:21:45+00:00" }, { - "name": "codeception/specify", - "version": "0.4.6", + "name": "codeception/module-asserts", + "version": "1.2.1", "source": { "type": "git", - "url": "https://github.com/Codeception/Specify.git", - "reference": "21b586f503ca444aa519dd9cafb32f113a05f286" + "url": "https://github.com/Codeception/module-asserts.git", + "reference": "79f13d05b63f2fceba4d0e78044bab668c9b2a6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/Specify/zipball/21b586f503ca444aa519dd9cafb32f113a05f286", - "reference": "21b586f503ca444aa519dd9cafb32f113a05f286", + "url": "https://api.github.com/repos/Codeception/module-asserts/zipball/79f13d05b63f2fceba4d0e78044bab668c9b2a6b", + "reference": "79f13d05b63f2fceba4d0e78044bab668c9b2a6b", "shasum": "" }, "require": { - "myclabs/deep-copy": "~1.1", - "php": ">=5.4.0" + "codeception/codeception": "*@dev", + "codeception/lib-asserts": "^1.12.0", + "php": ">=5.6.0 <8.0" + }, + "conflict": { + "codeception/codeception": "<4.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "codeception/util-robohelpers": "dev-master" }, "type": "library", "autoload": { - "psr-0": { - "Codeception\\": "src/" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -441,65 +294,110 @@ ], "authors": [ { - "name": "Michael Bodnarchuk", - "email": "davert.php@mailican.com" + "name": "Michael Bodnarchuk" + }, + { + "name": "Gintautas Miselis" } ], - "description": "BDD code blocks for PHPUnit and Codeception", - "time": "2016-10-21T09:42:00+00:00" + "description": "Codeception module containing various assertions", + "homepage": "http://codeception.com/", + "keywords": [ + "assertions", + "asserts", + "codeception" + ], + "time": "2020-04-20T07:26:11+00:00" }, { - "name": "codeception/stub", - "version": "2.0.4", + "name": "codeception/module-phpbrowser", + "version": "1.0.1", "source": { "type": "git", - "url": "https://github.com/Codeception/Stub.git", - "reference": "f50bc271f392a2836ff80690ce0c058efe1ae03e" + "url": "https://github.com/Codeception/module-phpbrowser.git", + "reference": "c1962657504a2a476b8dbd1f1ee05e0c912e5645" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/Stub/zipball/f50bc271f392a2836ff80690ce0c058efe1ae03e", - "reference": "f50bc271f392a2836ff80690ce0c058efe1ae03e", + "url": "https://api.github.com/repos/Codeception/module-phpbrowser/zipball/c1962657504a2a476b8dbd1f1ee05e0c912e5645", + "reference": "c1962657504a2a476b8dbd1f1ee05e0c912e5645", "shasum": "" }, "require": { - "phpunit/phpunit": ">=4.8 <8.0" + "codeception/codeception": "*@dev", + "codeception/lib-innerbrowser": "^1.3.2", + "guzzlehttp/guzzle": "^6.3.0|^7.0.0", + "php": ">=5.6.0 <8.0" + }, + "conflict": { + "codeception/codeception": "<4.0" + }, + "require-dev": { + "codeception/module-rest": "dev-master | ^1.0", + "codeception/util-robohelpers": "dev-master" + }, + "suggest": { + "codeception/phpbuiltinserver": "Start and stop PHP built-in web server for your tests" }, "type": "library", "autoload": { - "psr-4": { - "Codeception\\": "src/" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "Flexible Stub wrapper for PHPUnit's Mock Builder", - "time": "2018-07-26T11:55:37+00:00" + "authors": [ + { + "name": "Michael Bodnarchuk" + }, + { + "name": "Gintautas Miselis" + } + ], + "description": "Codeception module for testing web application over HTTP", + "homepage": "http://codeception.com/", + "keywords": [ + "codeception", + "functional-testing", + "http" + ], + "time": "2020-07-05T15:29:32+00:00" }, { - "name": "codeception/verify", - "version": "0.3.3", + "name": "codeception/phpunit-wrapper", + "version": "6.8.1", "source": { "type": "git", - "url": "https://github.com/Codeception/Verify.git", - "reference": "5d649dda453cd814dadc4bb053060cd2c6bb4b4c" + "url": "https://github.com/Codeception/phpunit-wrapper.git", + "reference": "ca6e94c6dadc19db05698d4e0d84214e570ce045" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/Verify/zipball/5d649dda453cd814dadc4bb053060cd2c6bb4b4c", - "reference": "5d649dda453cd814dadc4bb053060cd2c6bb4b4c", + "url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/ca6e94c6dadc19db05698d4e0d84214e570ce045", + "reference": "ca6e94c6dadc19db05698d4e0d84214e570ce045", "shasum": "" }, + "require": { + "phpunit/php-code-coverage": ">=4.0.4 <6.0", + "phpunit/phpunit": ">=6.5.13 <7.0", + "sebastian/comparator": ">=1.2.4 <3.0", + "sebastian/diff": ">=1.4 <4.0" + }, + "replace": { + "codeception/phpunit-wrapper": "*" + }, "require-dev": { - "phpunit/phpunit": "~4.0" + "codeception/specify": "*", + "vlucas/phpdotenv": "^3.0" }, "type": "library", "autoload": { - "files": [ - "src/Codeception/function.php" - ] + "psr-4": { + "Codeception\\PHPUnit\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -507,19 +405,50 @@ ], "authors": [ { - "name": "Michael Bodnarchuk", - "email": "davert.php@mailican.com" + "name": "Davert", + "email": "davert.php@resend.cc" } ], - "description": "BDD assertion library for PHPUnit", - "time": "2017-01-09T10:58:51+00:00" + "description": "PHPUnit classes used by Codeception", + "time": "2020-03-20T08:05:05+00:00" }, { - "name": "doctrine/instantiator", - "version": "1.0.5", + "name": "codeception/stub", + "version": "3.0.0", "source": { "type": "git", - "url": "https://github.com/doctrine/instantiator.git", + "url": "https://github.com/Codeception/Stub.git", + "reference": "eea518711d736eab838c1274593c4568ec06b23d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Codeception/Stub/zipball/eea518711d736eab838c1274593c4568ec06b23d", + "reference": "eea518711d736eab838c1274593c4568ec06b23d", + "shasum": "" + }, + "require": { + "codeception/phpunit-wrapper": "^6.6.1 | ^7.7.1 | ^8.0.3", + "phpunit/phpunit": ">=6.5 <9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Codeception\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Flexible Stub wrapper for PHPUnit's Mock Builder", + "time": "2019-08-10T16:20:53+00:00" + }, + { + "name": "doctrine/instantiator", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" }, "dist": { @@ -568,100 +497,46 @@ ], "time": "2015-06-14T21:17:01+00:00" }, - { - "name": "facebook/webdriver", - "version": "1.7.1", - "source": { - "type": "git", - "url": "https://github.com/php-webdriver/php-webdriver-archive.git", - "reference": "e43de70f3c7166169d0f14a374505392734160e5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-webdriver/php-webdriver-archive/zipball/e43de70f3c7166169d0f14a374505392734160e5", - "reference": "e43de70f3c7166169d0f14a374505392734160e5", - "shasum": "" - }, - "require": { - "ext-curl": "*", - "ext-json": "*", - "ext-mbstring": "*", - "ext-zip": "*", - "php": "^5.6 || ~7.0", - "symfony/process": "^2.8 || ^3.1 || ^4.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^2.0", - "jakub-onderka/php-parallel-lint": "^0.9.2", - "php-coveralls/php-coveralls": "^2.0", - "php-mock/php-mock-phpunit": "^1.1", - "phpunit/phpunit": "^5.7", - "sebastian/environment": "^1.3.4 || ^2.0 || ^3.0", - "squizlabs/php_codesniffer": "^2.6", - "symfony/var-dumper": "^3.3 || ^4.0" - }, - "suggest": { - "ext-SimpleXML": "For Firefox profile creation" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-community": "1.5-dev" - } - }, - "autoload": { - "psr-4": { - "Facebook\\WebDriver\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "description": "A PHP client for Selenium WebDriver", - "homepage": "https://github.com/facebook/php-webdriver", - "keywords": [ - "facebook", - "php", - "selenium", - "webdriver" - ], - "abandoned": "php-webdriver/webdriver", - "time": "2019-06-13T08:02:18+00:00" - }, { "name": "guzzlehttp/guzzle", - "version": "6.5.5", + "version": "7.0.1", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e" + "reference": "2d9d3c186a6637a43193e66b097c50e4451eaab2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/9d4290de1cfd701f38099ef7e183b64b4b7b0c5e", - "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/2d9d3c186a6637a43193e66b097c50e4451eaab2", + "reference": "2d9d3c186a6637a43193e66b097c50e4451eaab2", "shasum": "" }, "require": { "ext-json": "*", "guzzlehttp/promises": "^1.0", "guzzlehttp/psr7": "^1.6.1", - "php": ">=5.5", - "symfony/polyfill-intl-idn": "^1.17.0" + "php": "^7.2.5", + "psr/http-client": "^1.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" }, "require-dev": { + "ergebnis/composer-normalize": "^2.0", "ext-curl": "*", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", + "php-http/client-integration-tests": "dev-phpunit8", + "phpunit/phpunit": "^8.5.5", "psr/log": "^1.1" }, "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", "psr/log": "Required for using the Log middleware" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.5-dev" + "dev-master": "7.0-dev" } }, "autoload": { @@ -681,6 +556,11 @@ "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" } ], "description": "Guzzle is a PHP HTTP client library", @@ -691,10 +571,12 @@ "framework", "http", "http client", + "psr-18", + "psr-7", "rest", "web service" ], - "time": "2020-06-16T21:01:06+00:00" + "time": "2020-06-27T10:33:25+00:00" }, { "name": "guzzlehttp/promises", @@ -819,81 +701,90 @@ "time": "2019-07-01T23:21:34+00:00" }, { - "name": "hamcrest/hamcrest-php", - "version": "v1.2.2", + "name": "myclabs/deep-copy", + "version": "1.10.1", "source": { "type": "git", - "url": "https://github.com/hamcrest/hamcrest-php.git", - "reference": "b37020aa976fa52d3de9aa904aa2522dc518f79c" + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/b37020aa976fa52d3de9aa904aa2522dc518f79c", - "reference": "b37020aa976fa52d3de9aa904aa2522dc518f79c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", + "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": "^7.1 || ^8.0" }, "replace": { - "cordoval/hamcrest-php": "*", - "davedevelopment/hamcrest-php": "*", - "kodova/hamcrest-php": "*" + "myclabs/deep-copy": "self.version" }, "require-dev": { - "phpunit/php-file-iterator": "1.3.3", - "satooshi/php-coveralls": "dev-master" + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^7.1" }, "type": "library", "autoload": { - "classmap": [ - "hamcrest" - ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + }, "files": [ - "hamcrest/Hamcrest.php" + "src/DeepCopy/deep_copy.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD" + "MIT" ], - "description": "This is the PHP port of Hamcrest Matchers", + "description": "Create deep copies (clones) of your objects", "keywords": [ - "test" + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } ], - "time": "2015-05-11T14:41:42+00:00" + "time": "2020-06-29T13:22:24+00:00" }, { - "name": "mockery/mockery", - "version": "0.9.11", + "name": "phalcon/incubator-acl", + "version": "v1.0.0-alpha.1", "source": { "type": "git", - "url": "https://github.com/mockery/mockery.git", - "reference": "be9bf28d8e57d67883cba9fcadfcff8caab667f8" + "url": "https://github.com/phalcon/incubator-acl.git", + "reference": "33b4e184ef9c99d355c20eb983e85621015c6d3f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/be9bf28d8e57d67883cba9fcadfcff8caab667f8", - "reference": "be9bf28d8e57d67883cba9fcadfcff8caab667f8", + "url": "https://api.github.com/repos/phalcon/incubator-acl/zipball/33b4e184ef9c99d355c20eb983e85621015c6d3f", + "reference": "33b4e184ef9c99d355c20eb983e85621015c6d3f", "shasum": "" }, "require": { - "hamcrest/hamcrest-php": "~1.1", - "lib-pcre": ">=7.0", - "php": ">=5.3.2" + "ext-phalcon": "^4.0", + "php": ">=7.2" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "codeception/codeception": "^4.1", + "codeception/module-asserts": "^1.0.0", + "mongodb/mongodb": "^1.6", + "phalcon/ide-stubs": "^4.0", + "phpstan/phpstan": "^0.12.18", + "squizlabs/php_codesniffer": "3.5.1", + "vimeo/psalm": "3.6.2" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.9.x-dev" - } - }, "autoload": { - "psr-0": { - "Mockery": "library/" + "psr-4": { + "Phalcon\\Incubator\\Acl\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -902,182 +793,254 @@ ], "authors": [ { - "name": "Pádraic Brady", - "email": "padraic.brady@gmail.com", - "homepage": "http://blog.astrumfutura.com" + "name": "Phalcon Team", + "email": "team@phalcon.io", + "homepage": "https://phalcon.io/en/team" }, { - "name": "Dave Marshall", - "email": "dave.marshall@atstsolutions.co.uk", - "homepage": "http://davedevelopment.co.uk" + "name": "Contributors", + "homepage": "https://github.com/phalcon/incubator-acl/graphs/contributors" } ], - "description": "Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.", - "homepage": "http://github.com/padraic/mockery", + "description": "Phalcon Incubator Access Control List", + "homepage": "https://phalcon.io", "keywords": [ - "BDD", - "TDD", - "library", - "mock", - "mock objects", - "mockery", - "stub", - "test", - "test double", - "testing" + "acl", + "framework", + "incubator", + "phalcon" + ], + "funding": [ + { + "url": "https://github.com/phalcon", + "type": "github" + }, + { + "url": "https://opencollective.com/phalcon", + "type": "open_collective" + } ], - "time": "2019-02-12T16:07:13+00:00" + "time": "2020-04-13T22:00:37+00:00" }, { - "name": "myclabs/deep-copy", - "version": "1.9.5", + "name": "phalcon/incubator-session", + "version": "v1.0.0", "source": { "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "b2c28789e80a97badd14145fda39b545d83ca3ef" + "url": "https://github.com/phalcon/incubator-session.git", + "reference": "68e6543c91789b5f79ca7e2c1f8c9ae4689bef14" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/b2c28789e80a97badd14145fda39b545d83ca3ef", - "reference": "b2c28789e80a97badd14145fda39b545d83ca3ef", + "url": "https://api.github.com/repos/phalcon/incubator-session/zipball/68e6543c91789b5f79ca7e2c1f8c9ae4689bef14", + "reference": "68e6543c91789b5f79ca7e2c1f8c9ae4689bef14", "shasum": "" }, "require": { - "php": "^7.1" - }, - "replace": { - "myclabs/deep-copy": "self.version" + "ext-phalcon": "^4.0", + "php": ">=7.2" }, "require-dev": { - "doctrine/collections": "^1.0", - "doctrine/common": "^2.6", - "phpunit/phpunit": "^7.1" + "codeception/codeception": "^4.1", + "codeception/module-asserts": "^1.0.0", + "mongodb/mongodb": "^1.6", + "phalcon/ide-stubs": "^4.0", + "phpstan/phpstan": "^0.12.18", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^3.6" }, "type": "library", "autoload": { "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - }, - "files": [ - "src/DeepCopy/deep_copy.php" - ] + "Phalcon\\Incubator\\Session\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], - "description": "Create deep copies (clones) of your objects", + "authors": [ + { + "name": "Phalcon Team", + "email": "team@phalcon.io", + "homepage": "https://phalcon.io/en/team" + }, + { + "name": "Contributors", + "homepage": "https://github.com/phalcon/incubator-session/graphs/contributors" + } + ], + "description": "Phalcon Incubator Sessions Adapters", + "homepage": "https://phalcon.io", "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" + "framework", + "incubator", + "phalcon", + "session" ], - "time": "2020-01-17T21:11:47+00:00" + "funding": [ + { + "url": "https://github.com/phalcon", + "type": "github" + }, + { + "url": "https://opencollective.com/phalcon", + "type": "open_collective" + } + ], + "time": "2020-06-18T15:04:50+00:00" }, { - "name": "phalcon/dd", - "version": "v1.1.3", + "name": "phalcon/incubator-test", + "version": "v1.0.0-alpha.1", "source": { "type": "git", - "url": "https://github.com/phalcon/dd.git", - "reference": "71a05c4f8d4b4216638f61d0c0be312799b0ab08" + "url": "https://github.com/phalcon/incubator-test.git", + "reference": "7c56c98ea8030d8a2c741b133d0e8b3107ac6d22" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phalcon/dd/zipball/71a05c4f8d4b4216638f61d0c0be312799b0ab08", - "reference": "71a05c4f8d4b4216638f61d0c0be312799b0ab08", + "url": "https://api.github.com/repos/phalcon/incubator-test/zipball/7c56c98ea8030d8a2c741b133d0e8b3107ac6d22", + "reference": "7c56c98ea8030d8a2c741b133d0e8b3107ac6d22", "shasum": "" }, "require": { - "ext-phalcon": "^3.0 || ^4.0", - "php": "^5.4 || ^7.0" + "codeception/module-asserts": "^1.0.0", + "codeception/module-phpbrowser": "^1.0.0", + "ext-phalcon": "^4.0.0", + "php": ">=7.2" + }, + "require-dev": { + "phalcon/ide-stubs": "^4.0.0", + "phpunit/phpunit": "8.4.1", + "squizlabs/php_codesniffer": "3.5.1", + "vimeo/psalm": "3.6.2" }, "type": "library", "autoload": { - "files": [ - "src/helper.php" - ] + "psr-4": { + "Phalcon\\Incubator\\Test\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ "BSD-3-Clause" ], - "authors": [ + "description": "Default components to test with Phalcon", + "homepage": "https://phalcon.io", + "funding": [ { - "name": "Phalcon Team", - "email": "team@phalconphp.com", - "homepage": "http://phalconphp.com/en/team" + "url": "https://github.com/phalcon", + "type": "github" }, { - "name": "Contributors", - "homepage": "https://github.com/phalcon/dd/graphs/contributors" + "url": "https://opencollective.com/phalcon", + "type": "open_collective" } ], - "description": "This package will add the `dd` and `dump` helpers to your Phalcon application.", - "homepage": "https://github.com/phalcon/dd", - "keywords": [ - "VarDumper", - "dd", - "debug", - "dump", - "phalcon", - "utils" - ], - "time": "2019-07-26T05:29:31+00:00" + "time": "2020-04-22T22:27:09+00:00" }, { - "name": "phalcon/ide-stubs", - "version": "v4.0.6", + "name": "phar-io/manifest", + "version": "1.0.1", "source": { "type": "git", - "url": "https://github.com/phalcon/ide-stubs.git", - "reference": "d2adae3fba488ccba913a3f7fc310f23aa6de4a3" + "url": "https://github.com/phar-io/manifest.git", + "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phalcon/ide-stubs/zipball/d2adae3fba488ccba913a3f7fc310f23aa6de4a3", - "reference": "d2adae3fba488ccba913a3f7fc310f23aa6de4a3", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0", + "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0", "shasum": "" }, "require": { - "php": ">=7.2.0" - }, - "require-dev": { - "squizlabs/php_codesniffer": "3.*", - "vimeo/psalm": "^3.4" + "ext-dom": "*", + "ext-phar": "*", + "phar-io/version": "^1.0.1", + "php": "^5.6 || ^7.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ "BSD-3-Clause" ], "authors": [ { - "name": "Phalcon Team", - "email": "team@phalcon.io", - "homepage": "https://phalcon.io/en-us/team" + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" }, { - "name": "Contributors", - "homepage": "https://github.com/phalcon/ide-stubs/graphs/contributors" + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" } ], - "description": "The most complete Phalcon Framework IDE stubs library which enables autocompletion in modern IDEs.", - "homepage": "https://phalcon.io", - "keywords": [ - "Devtools", - "Eclipse", - "autocomplete", - "ide", - "netbeans", - "phalcon", - "phpstorm", - "stub", - "stubs" + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "time": "2017-03-05T18:14:27+00:00" + }, + { + "name": "phar-io/version", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df", + "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" ], - "time": "2020-05-18T20:16:38+00:00" + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "time": "2017-03-05T17:38:23+00:00" }, { "name": "phpdocumentor/reflection-docblock", @@ -1193,39 +1156,40 @@ }, { "name": "phpunit/php-code-coverage", - "version": "2.2.4", + "version": "5.3.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979" + "reference": "c89677919c5dd6d3b3852f230a663118762218ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c89677919c5dd6d3b3852f230a663118762218ac", + "reference": "c89677919c5dd6d3b3852f230a663118762218ac", "shasum": "" }, "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": "~1.3", - "phpunit/php-text-template": "~1.2", - "phpunit/php-token-stream": "~1.3", - "sebastian/environment": "^1.3.2", - "sebastian/version": "~1.0" + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^7.0", + "phpunit/php-file-iterator": "^1.4.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-token-stream": "^2.0.1", + "sebastian/code-unit-reverse-lookup": "^1.0.1", + "sebastian/environment": "^3.0", + "sebastian/version": "^2.0.1", + "theseer/tokenizer": "^1.1" }, "require-dev": { - "ext-xdebug": ">=2.1.4", - "phpunit/phpunit": "~4" + "phpunit/phpunit": "^6.0" }, "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.2.1", - "ext-xmlwriter": "*" + "ext-xdebug": "^2.5.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.2.x-dev" + "dev-master": "5.3.x-dev" } }, "autoload": { @@ -1240,7 +1204,7 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], @@ -1251,7 +1215,7 @@ "testing", "xunit" ], - "time": "2015-10-06T15:47:00+00:00" + "time": "2018-04-06T15:36:58+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1392,29 +1356,29 @@ }, { "name": "phpunit/php-token-stream", - "version": "1.4.12", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16" + "reference": "791198a2c6254db10131eecfe8c06670700904db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16", - "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db", + "reference": "791198a2c6254db10131eecfe8c06670700904db", "shasum": "" }, "require": { "ext-tokenizer": "*", - "php": ">=5.3.3" + "php": "^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.2" + "phpunit/phpunit": "^6.2.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1437,45 +1401,57 @@ "keywords": [ "tokenizer" ], - "time": "2017-12-04T08:55:13+00:00" + "time": "2017-11-27T05:48:46+00:00" }, { "name": "phpunit/phpunit", - "version": "4.8.36", + "version": "6.5.14", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "46023de9a91eec7dfb06cc56cb4e260017298517" + "reference": "bac23fe7ff13dbdb461481f706f0e9fe746334b7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517", - "reference": "46023de9a91eec7dfb06cc56cb4e260017298517", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/bac23fe7ff13dbdb461481f706f0e9fe746334b7", + "reference": "bac23fe7ff13dbdb461481f706f0e9fe746334b7", "shasum": "" }, "require": { "ext-dom": "*", "ext-json": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*", - "php": ">=5.3.3", - "phpspec/prophecy": "^1.3.1", - "phpunit/php-code-coverage": "~2.1", - "phpunit/php-file-iterator": "~1.4", - "phpunit/php-text-template": "~1.2", - "phpunit/php-timer": "^1.0.6", - "phpunit/phpunit-mock-objects": "~2.3", - "sebastian/comparator": "~1.2.2", - "sebastian/diff": "~1.2", - "sebastian/environment": "~1.3", - "sebastian/exporter": "~1.2", - "sebastian/global-state": "~1.0", - "sebastian/version": "~1.0", - "symfony/yaml": "~2.1|~3.0" + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "^1.6.1", + "phar-io/manifest": "^1.0.1", + "phar-io/version": "^1.0", + "php": "^7.0", + "phpspec/prophecy": "^1.7", + "phpunit/php-code-coverage": "^5.3", + "phpunit/php-file-iterator": "^1.4.3", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-timer": "^1.0.9", + "phpunit/phpunit-mock-objects": "^5.0.9", + "sebastian/comparator": "^2.1", + "sebastian/diff": "^2.0", + "sebastian/environment": "^3.1", + "sebastian/exporter": "^3.1", + "sebastian/global-state": "^2.0", + "sebastian/object-enumerator": "^3.0.3", + "sebastian/resource-operations": "^1.0", + "sebastian/version": "^2.0.1" + }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2", + "phpunit/dbunit": "<3.0" + }, + "require-dev": { + "ext-pdo": "*" }, "suggest": { - "phpunit/php-invoker": "~1.1" + "ext-xdebug": "*", + "phpunit/php-invoker": "^1.1" }, "bin": [ "phpunit" @@ -1483,7 +1459,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.8.x-dev" + "dev-master": "6.5.x-dev" } }, "autoload": { @@ -1509,30 +1485,33 @@ "testing", "xunit" ], - "time": "2017-06-21T08:07:12+00:00" + "time": "2019-02-01T05:22:47+00:00" }, { "name": "phpunit/phpunit-mock-objects", - "version": "2.3.8", + "version": "5.0.10", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983" + "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/cd1cf05c553ecfec36b170070573e540b67d3f1f", + "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.0.2", - "php": ">=5.3.3", - "phpunit/php-text-template": "~1.2", - "sebastian/exporter": "~1.2" + "doctrine/instantiator": "^1.0.5", + "php": "^7.0", + "phpunit/php-text-template": "^1.2.1", + "sebastian/exporter": "^3.1" + }, + "conflict": { + "phpunit/phpunit": "<6.0" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^6.5.11" }, "suggest": { "ext-soap": "*" @@ -1540,7 +1519,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.3.x-dev" + "dev-master": "5.0.x-dev" } }, "autoload": { @@ -1555,7 +1534,7 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], @@ -1566,7 +1545,7 @@ "xunit" ], "abandoned": true, - "time": "2015-10-02T06:51:40+00:00" + "time": "2018-08-09T05:50:03+00:00" }, { "name": "psr/container", @@ -1617,6 +1596,101 @@ ], "time": "2017-02-14T16:28:37+00:00" }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "time": "2020-06-29T06:28:15+00:00" + }, { "name": "psr/http-message", "version": "1.0.1", @@ -1707,32 +1781,77 @@ "description": "A polyfill for getallheaders.", "time": "2019-03-08T08:55:37+00:00" }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "time": "2017-03-04T06:30:41+00:00" + }, { "name": "sebastian/comparator", - "version": "1.2.4", + "version": "2.1.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9", + "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9", "shasum": "" }, "require": { - "php": ">=5.3.3", - "sebastian/diff": "~1.2", - "sebastian/exporter": "~1.2 || ~2.0" + "php": "^7.0", + "sebastian/diff": "^2.0 || ^3.0", + "sebastian/exporter": "^3.1" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^6.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2.x-dev" + "dev-master": "2.1.x-dev" } }, "autoload": { @@ -1763,38 +1882,38 @@ } ], "description": "Provides the functionality to compare PHP values for equality", - "homepage": "http://www.github.com/sebastianbergmann/comparator", + "homepage": "https://github.com/sebastianbergmann/comparator", "keywords": [ "comparator", "compare", "equality" ], - "time": "2017-01-29T09:50:25+00:00" + "time": "2018-02-01T13:46:46+00:00" }, { "name": "sebastian/diff", - "version": "1.4.3", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" + "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd", + "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0" + "php": "^7.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + "phpunit/phpunit": "^6.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1821,32 +1940,32 @@ "keywords": [ "diff" ], - "time": "2017-05-22T07:24:03+00:00" + "time": "2017-08-03T08:09:46+00:00" }, { "name": "sebastian/environment", - "version": "1.3.8", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea" + "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea", - "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5", + "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0" + "php": "^7.0" }, "require-dev": { - "phpunit/phpunit": "^4.8 || ^5.0" + "phpunit/phpunit": "^6.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "3.1.x-dev" } }, "autoload": { @@ -1871,34 +1990,34 @@ "environment", "hhvm" ], - "time": "2016-08-18T05:49:44+00:00" + "time": "2017-07-01T08:51:00+00:00" }, { "name": "sebastian/exporter", - "version": "1.2.2", + "version": "3.1.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" + "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/68609e1261d215ea5b21b7987539cbfbe156ec3e", + "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e", "shasum": "" }, "require": { - "php": ">=5.3.3", - "sebastian/recursion-context": "~1.0" + "php": "^7.0", + "sebastian/recursion-context": "^3.0" }, "require-dev": { "ext-mbstring": "*", - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "3.1.x-dev" } }, "autoload": { @@ -1911,6 +2030,10 @@ "BSD-3-Clause" ], "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, { "name": "Jeff Welch", "email": "whatthejeff@gmail.com" @@ -1919,17 +2042,13 @@ "name": "Volker Dusch", "email": "github@wallbash.com" }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, { "name": "Adam Harvey", "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" } ], "description": "Provides the functionality to export PHP variables for visualization", @@ -1938,27 +2057,27 @@ "export", "exporter" ], - "time": "2016-06-17T09:04:28+00:00" + "time": "2019-09-14T09:02:43+00:00" }, { "name": "sebastian/global-state", - "version": "1.1.1", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", + "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.2" + "phpunit/phpunit": "^6.0" }, "suggest": { "ext-uopz": "*" @@ -1966,7 +2085,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1989,32 +2108,34 @@ "keywords": [ "global state" ], - "time": "2015-10-12T03:26:01+00:00" + "time": "2017-04-27T15:39:26+00:00" }, { - "name": "sebastian/recursion-context", - "version": "1.0.5", + "name": "sebastian/object-enumerator", + "version": "3.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7" + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7", - "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5", + "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^7.0", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "3.0.x-dev" } }, "autoload": { @@ -2027,38 +2148,41 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" } ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2016-10-03T07:41:43+00:00" + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "time": "2017-08-03T12:35:26+00:00" }, { - "name": "sebastian/version", - "version": "1.0.6", + "name": "sebastian/object-reflector", + "version": "1.1.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "773f97c67f28de00d397be301821b06708fca0be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be", + "reference": "773f97c67f28de00d397be301821b06708fca0be", "shasum": "" }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -2071,72 +2195,42 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" } ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "time": "2015-06-21T13:59:46+00:00" + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "time": "2017-03-29T09:07:27+00:00" }, { - "name": "squizlabs/php_codesniffer", - "version": "2.9.2", + "name": "sebastian/recursion-context", + "version": "3.0.0", "source": { "type": "git", - "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "2acf168de78487db620ab4bc524135a13cfe6745" + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745", - "reference": "2acf168de78487db620ab4bc524135a13cfe6745", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", + "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", "shasum": "" }, "require": { - "ext-simplexml": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": ">=5.1.2" + "php": "^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "^6.0" }, - "bin": [ - "scripts/phpcs", - "scripts/phpcbf" - ], "type": "library", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-master": "3.0.x-dev" } }, "autoload": { "classmap": [ - "CodeSniffer.php", - "CodeSniffer/CLI.php", - "CodeSniffer/Exception.php", - "CodeSniffer/File.php", - "CodeSniffer/Fixer.php", - "CodeSniffer/Report.php", - "CodeSniffer/Reporting.php", - "CodeSniffer/Sniff.php", - "CodeSniffer/Tokens.php", - "CodeSniffer/Reports/", - "CodeSniffer/Tokenizers/", - "CodeSniffer/DocGenerators/", - "CodeSniffer/Standards/AbstractPatternSniff.php", - "CodeSniffer/Standards/AbstractScopeSniff.php", - "CodeSniffer/Standards/AbstractVariableSniff.php", - "CodeSniffer/Standards/IncorrectPatternException.php", - "CodeSniffer/Standards/Generic/Sniffs/", - "CodeSniffer/Standards/MySource/Sniffs/", - "CodeSniffer/Standards/PEAR/Sniffs/", - "CodeSniffer/Standards/PSR1/Sniffs/", - "CodeSniffer/Standards/PSR2/Sniffs/", - "CodeSniffer/Standards/Squiz/Sniffs/", - "CodeSniffer/Standards/Zend/Sniffs/" + "src/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2145,41 +2239,130 @@ ], "authors": [ { - "name": "Greg Sherwood", - "role": "lead" + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" } ], - "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", - "homepage": "http://www.squizlabs.com/php-codesniffer", - "keywords": [ - "phpcs", - "standards" + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2017-03-03T06:23:57+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" ], - "time": "2018-11-07T22:31:41+00:00" + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "time": "2015-07-28T20:34:47+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2016-10-03T07:35:21+00:00" }, { "name": "symfony/browser-kit", - "version": "v4.4.10", + "version": "v5.1.3", "source": { "type": "git", "url": "https://github.com/symfony/browser-kit.git", - "reference": "f53310646af9901292488b2ff36e26ea10f545f5" + "reference": "b9545e08790be2d3d7d92306e339bbcd79f461e4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/browser-kit/zipball/f53310646af9901292488b2ff36e26ea10f545f5", - "reference": "f53310646af9901292488b2ff36e26ea10f545f5", + "url": "https://api.github.com/repos/symfony/browser-kit/zipball/b9545e08790be2d3d7d92306e339bbcd79f461e4", + "reference": "b9545e08790be2d3d7d92306e339bbcd79f461e4", "shasum": "" }, "require": { - "php": ">=7.1.3", - "symfony/dom-crawler": "^3.4|^4.0|^5.0" + "php": ">=7.2.5", + "symfony/dom-crawler": "^4.4|^5.0" }, "require-dev": { - "symfony/css-selector": "^3.4|^4.0|^5.0", - "symfony/http-client": "^4.3|^5.0", - "symfony/mime": "^4.3|^5.0", - "symfony/process": "^3.4|^4.0|^5.0" + "symfony/css-selector": "^4.4|^5.0", + "symfony/http-client": "^4.4|^5.0", + "symfony/mime": "^4.4|^5.0", + "symfony/process": "^4.4|^5.0" }, "suggest": { "symfony/process": "" @@ -2187,7 +2370,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.4-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2214,46 +2397,62 @@ ], "description": "Symfony BrowserKit Component", "homepage": "https://symfony.com", - "time": "2020-05-22T17:28:00+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-06-24T13:36:18+00:00" }, { "name": "symfony/console", - "version": "v4.4.10", + "version": "v5.1.3", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "326b064d804043005526f5a0494cfb49edb59bb0" + "reference": "2226c68009627934b8cfc01260b4d287eab070df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/326b064d804043005526f5a0494cfb49edb59bb0", - "reference": "326b064d804043005526f5a0494cfb49edb59bb0", + "url": "https://api.github.com/repos/symfony/console/zipball/2226c68009627934b8cfc01260b4d287eab070df", + "reference": "2226c68009627934b8cfc01260b4d287eab070df", "shasum": "" }, "require": { - "php": ">=7.1.3", + "php": ">=7.2.5", "symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-php73": "^1.8", "symfony/polyfill-php80": "^1.15", - "symfony/service-contracts": "^1.1|^2" + "symfony/service-contracts": "^1.1|^2", + "symfony/string": "^5.1" }, "conflict": { - "symfony/dependency-injection": "<3.4", - "symfony/event-dispatcher": "<4.3|>=5", + "symfony/dependency-injection": "<4.4", + "symfony/dotenv": "<5.1", + "symfony/event-dispatcher": "<4.4", "symfony/lock": "<4.4", - "symfony/process": "<3.3" + "symfony/process": "<4.4" }, "provide": { "psr/log-implementation": "1.0" }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "^3.4|^4.0|^5.0", - "symfony/dependency-injection": "^3.4|^4.0|^5.0", - "symfony/event-dispatcher": "^4.3", + "symfony/config": "^4.4|^5.0", + "symfony/dependency-injection": "^4.4|^5.0", + "symfony/event-dispatcher": "^4.4|^5.0", "symfony/lock": "^4.4|^5.0", - "symfony/process": "^3.4|^4.0|^5.0", - "symfony/var-dumper": "^4.3|^5.0" + "symfony/process": "^4.4|^5.0", + "symfony/var-dumper": "^4.4|^5.0" }, "suggest": { "psr/log": "For using the console logger", @@ -2264,7 +2463,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.4-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2291,29 +2490,43 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2020-05-30T20:06:45+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-06T13:23:11+00:00" }, { "name": "symfony/css-selector", - "version": "v4.4.10", + "version": "v5.1.3", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "afc26133a6fbdd4f8842e38893e0ee4685c7c94b" + "reference": "e544e24472d4c97b2d11ade7caacd446727c6bf9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/afc26133a6fbdd4f8842e38893e0ee4685c7c94b", - "reference": "afc26133a6fbdd4f8842e38893e0ee4685c7c94b", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/e544e24472d4c97b2d11ade7caacd446727c6bf9", + "reference": "e544e24472d4c97b2d11ade7caacd446727c6bf9", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": ">=7.2.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.4-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2344,33 +2557,112 @@ ], "description": "Symfony CssSelector Component", "homepage": "https://symfony.com", - "time": "2020-03-27T16:54:36+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-20T17:43:50+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "5e20b83385a77593259c9f8beb2c43cd03b2ac14" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5e20b83385a77593259c9f8beb2c43cd03b2ac14", + "reference": "5e20b83385a77593259c9f8beb2c43cd03b2ac14", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-06-06T08:49:21+00:00" }, { "name": "symfony/dom-crawler", - "version": "v4.4.10", + "version": "v5.1.3", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", - "reference": "c18354d5a0bb84c945f6257c51b971d52f10c614" + "reference": "a96aecb36aaf081f1b012e1e62d71f1069ab3dca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/c18354d5a0bb84c945f6257c51b971d52f10c614", - "reference": "c18354d5a0bb84c945f6257c51b971d52f10c614", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/a96aecb36aaf081f1b012e1e62d71f1069ab3dca", + "reference": "a96aecb36aaf081f1b012e1e62d71f1069ab3dca", "shasum": "" }, "require": { - "php": ">=7.1.3", + "php": ">=7.2.5", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.0" + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "^1.15" }, "conflict": { "masterminds/html5": "<2.6" }, "require-dev": { "masterminds/html5": "^2.6", - "symfony/css-selector": "^3.4|^4.0|^5.0" + "symfony/css-selector": "^4.4|^5.0" }, "suggest": { "symfony/css-selector": "" @@ -2378,7 +2670,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.4-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2405,41 +2697,57 @@ ], "description": "Symfony DomCrawler Component", "homepage": "https://symfony.com", - "time": "2020-05-23T00:03:06+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-23T08:36:24+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.4.10", + "version": "v5.1.3", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "a5370aaa7807c7a439b21386661ffccf3dff2866" + "reference": "7827d55911f91c070fc293ea51a06eec80797d76" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a5370aaa7807c7a439b21386661ffccf3dff2866", - "reference": "a5370aaa7807c7a439b21386661ffccf3dff2866", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7827d55911f91c070fc293ea51a06eec80797d76", + "reference": "7827d55911f91c070fc293ea51a06eec80797d76", "shasum": "" }, "require": { - "php": ">=7.1.3", - "symfony/event-dispatcher-contracts": "^1.1" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", + "symfony/event-dispatcher-contracts": "^2", + "symfony/polyfill-php80": "^1.15" }, "conflict": { - "symfony/dependency-injection": "<3.4" + "symfony/dependency-injection": "<4.4" }, "provide": { "psr/event-dispatcher-implementation": "1.0", - "symfony/event-dispatcher-implementation": "1.1" + "symfony/event-dispatcher-implementation": "2.0" }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "^3.4|^4.0|^5.0", - "symfony/dependency-injection": "^3.4|^4.0|^5.0", - "symfony/expression-language": "^3.4|^4.0|^5.0", - "symfony/http-foundation": "^3.4|^4.0|^5.0", + "symfony/config": "^4.4|^5.0", + "symfony/dependency-injection": "^4.4|^5.0", + "symfony/expression-language": "^4.4|^5.0", + "symfony/http-foundation": "^4.4|^5.0", "symfony/service-contracts": "^1.1|^2", - "symfony/stopwatch": "^3.4|^4.0|^5.0" + "symfony/stopwatch": "^4.4|^5.0" }, "suggest": { "symfony/dependency-injection": "", @@ -2448,7 +2756,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.4-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2475,33 +2783,51 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2020-05-20T08:37:50+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-06-18T18:24:02+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v1.1.7", + "version": "v2.1.3", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18" + "reference": "f6f613d74cfc5a623fc36294d3451eb7fa5a042b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c43ab685673fb6c8d84220c77897b1d6cdbe1d18", - "reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f6f613d74cfc5a623fc36294d3451eb7fa5a042b", + "reference": "f6f613d74cfc5a623fc36294d3451eb7fa5a042b", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": ">=7.2.5", + "psr/event-dispatcher": "^1" }, "suggest": { - "psr/event-dispatcher": "", "symfony/event-dispatcher-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "2.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -2533,29 +2859,43 @@ "interoperability", "standards" ], - "time": "2019-09-17T09:54:03+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-06T13:23:11+00:00" }, { "name": "symfony/finder", - "version": "v4.4.10", + "version": "v5.1.3", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "5729f943f9854c5781984ed4907bbb817735776b" + "reference": "4298870062bfc667cb78d2b379be4bf5dec5f187" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/5729f943f9854c5781984ed4907bbb817735776b", - "reference": "5729f943f9854c5781984ed4907bbb817735776b", + "url": "https://api.github.com/repos/symfony/finder/zipball/4298870062bfc667cb78d2b379be4bf5dec5f187", + "reference": "4298870062bfc667cb78d2b379be4bf5dec5f187", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": ">=7.2.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.4-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2582,20 +2922,34 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2020-03-27T16:54:36+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-20T17:43:50+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.17.0", + "version": "v1.18.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "e94c8b1bbe2bc77507a1056cdb06451c75b427f9" + "reference": "1c302646f6efc070cd46856e600e5e0684d6b454" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e94c8b1bbe2bc77507a1056cdb06451c75b427f9", - "reference": "e94c8b1bbe2bc77507a1056cdb06451c75b427f9", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/1c302646f6efc070cd46856e600e5e0684d6b454", + "reference": "1c302646f6efc070cd46856e600e5e0684d6b454", "shasum": "" }, "require": { @@ -2607,7 +2961,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.17-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -2640,26 +2998,38 @@ "polyfill", "portable" ], - "time": "2020-05-12T16:14:59+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { - "name": "symfony/polyfill-intl-idn", - "version": "v1.17.0", + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.18.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-intl-idn.git", - "reference": "3bff59ea7047e925be6b7f2059d60af31bb46d6a" + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "b740103edbdcc39602239ee8860f0f45a8eb9aa5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/3bff59ea7047e925be6b7f2059d60af31bb46d6a", - "reference": "3bff59ea7047e925be6b7f2059d60af31bb46d6a", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b740103edbdcc39602239ee8860f0f45a8eb9aa5", + "reference": "b740103edbdcc39602239ee8860f0f45a8eb9aa5", "shasum": "" }, "require": { - "php": ">=5.3.3", - "symfony/polyfill-mbstring": "^1.3", - "symfony/polyfill-php72": "^1.10" + "php": ">=5.3.3" }, "suggest": { "ext-intl": "For best performance" @@ -2667,12 +3037,16 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.17-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { "psr-4": { - "Symfony\\Polyfill\\Intl\\Idn\\": "" + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" }, "files": [ "bootstrap.php" @@ -2684,58 +3058,79 @@ ], "authors": [ { - "name": "Laurent Bassin", - "email": "laurent@bassin.info" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "description": "Symfony polyfill for intl's grapheme_* functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", - "idn", + "grapheme", "intl", "polyfill", "portable", "shim" ], - "time": "2020-05-12T16:47:27+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { - "name": "symfony/polyfill-mbstring", - "version": "v1.17.0", + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.18.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "fa79b11539418b02fc5e1897267673ba2c19419c" + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fa79b11539418b02fc5e1897267673ba2c19419c", - "reference": "fa79b11539418b02fc5e1897267673ba2c19419c", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e", + "reference": "37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e", "shasum": "" }, "require": { "php": ">=5.3.3" }, "suggest": { - "ext-mbstring": "For best performance" + "ext-intl": "For best performance" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.17-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" }, "files": [ "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2752,43 +3147,65 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for the Mbstring extension", + "description": "Symfony polyfill for intl's Normalizer class and related functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", - "mbstring", + "intl", + "normalizer", "polyfill", "portable", "shim" ], - "time": "2020-05-12T16:47:27+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { - "name": "symfony/polyfill-php72", - "version": "v1.17.0", + "name": "symfony/polyfill-mbstring", + "version": "v1.18.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "f048e612a3905f34931127360bdd2def19a5e582" + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/f048e612a3905f34931127360bdd2def19a5e582", - "reference": "f048e612a3905f34931127360bdd2def19a5e582", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/a6977d63bf9a0ad4c65cd352709e230876f9904a", + "reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a", "shasum": "" }, "require": { "php": ">=5.3.3" }, + "suggest": { + "ext-mbstring": "For best performance" + }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.17-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { "psr-4": { - "Symfony\\Polyfill\\Php72\\": "" + "Symfony\\Polyfill\\Mbstring\\": "" }, "files": [ "bootstrap.php" @@ -2808,28 +3225,43 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "description": "Symfony polyfill for the Mbstring extension", "homepage": "https://symfony.com", "keywords": [ "compatibility", + "mbstring", "polyfill", "portable", "shim" ], - "time": "2020-05-12T16:47:27+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.17.0", + "version": "v1.18.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "a760d8964ff79ab9bf057613a5808284ec852ccc" + "reference": "fffa1a52a023e782cdcc221d781fe1ec8f87fcca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/a760d8964ff79ab9bf057613a5808284ec852ccc", - "reference": "a760d8964ff79ab9bf057613a5808284ec852ccc", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fffa1a52a023e782cdcc221d781fe1ec8f87fcca", + "reference": "fffa1a52a023e782cdcc221d781fe1ec8f87fcca", "shasum": "" }, "require": { @@ -2838,7 +3270,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.17-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -2874,20 +3310,34 @@ "portable", "shim" ], - "time": "2020-05-12T16:47:27+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.17.0", + "version": "v1.18.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "5e30b2799bc1ad68f7feb62b60a73743589438dd" + "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/5e30b2799bc1ad68f7feb62b60a73743589438dd", - "reference": "5e30b2799bc1ad68f7feb62b60a73743589438dd", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/d87d5766cbf48d72388a9f6b85f280c8ad51f981", + "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981", "shasum": "" }, "require": { @@ -2896,7 +3346,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.17-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -2936,38 +3390,57 @@ "portable", "shim" ], - "time": "2020-05-12T16:47:27+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { - "name": "symfony/process", - "version": "v4.4.10", + "name": "symfony/service-contracts", + "version": "v2.1.3", "source": { "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "c714958428a85c86ab97e3a0c96db4c4f381b7f5" + "url": "https://github.com/symfony/service-contracts.git", + "reference": "58c7475e5457c5492c26cc740cc0ad7464be9442" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/c714958428a85c86ab97e3a0c96db4c4f381b7f5", - "reference": "c714958428a85c86ab97e3a0c96db4c4f381b7f5", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/58c7475e5457c5492c26cc740cc0ad7464be9442", + "reference": "58c7475e5457c5492c26cc740cc0ad7464be9442", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": ">=7.2.5", + "psr/container": "^1.0" + }, + "suggest": { + "symfony/service-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.4-dev" + "dev-master": "2.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" } }, "autoload": { "psr-4": { - "Symfony\\Component\\Process\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] + "Symfony\\Contracts\\Service\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2975,49 +3448,84 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Process Component", + "description": "Generic abstractions related to writing services", "homepage": "https://symfony.com", - "time": "2020-05-30T20:06:45+00:00" + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-06T13:23:11+00:00" }, { - "name": "symfony/service-contracts", - "version": "v2.1.2", + "name": "symfony/string", + "version": "v5.1.3", "source": { "type": "git", - "url": "https://github.com/symfony/service-contracts.git", - "reference": "66a8f0957a3ca54e4f724e49028ab19d75a8918b" + "url": "https://github.com/symfony/string.git", + "reference": "f629ba9b611c76224feb21fe2bcbf0b6f992300b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/66a8f0957a3ca54e4f724e49028ab19d75a8918b", - "reference": "66a8f0957a3ca54e4f724e49028ab19d75a8918b", + "url": "https://api.github.com/repos/symfony/string/zipball/f629ba9b611c76224feb21fe2bcbf0b6f992300b", + "reference": "f629ba9b611c76224feb21fe2bcbf0b6f992300b", "shasum": "" }, "require": { "php": ">=7.2.5", - "psr/container": "^1.0" + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "~1.15" }, - "suggest": { - "symfony/service-implementation": "" + "require-dev": { + "symfony/error-handler": "^4.4|^5.0", + "symfony/http-client": "^4.4|^5.0", + "symfony/translation-contracts": "^1.1|^2", + "symfony/var-exporter": "^4.4|^5.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-master": "5.1-dev" } }, "autoload": { "psr-4": { - "Symfony\\Contracts\\Service\\": "" - } + "Symfony\\Component\\String\\": "" + }, + "files": [ + "Resources/functions.php" + ], + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -3033,49 +3541,67 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Generic abstractions related to writing services", + "description": "Symfony String component", "homepage": "https://symfony.com", "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" ], - "time": "2020-05-20T17:43:50+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-08T08:27:49+00:00" }, { "name": "symfony/yaml", - "version": "v3.4.42", + "version": "v5.1.3", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "7233ac2bfdde24d672f5305f2b3f6b5d741ef8eb" + "reference": "ea342353a3ef4f453809acc4ebc55382231d4d23" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/7233ac2bfdde24d672f5305f2b3f6b5d741ef8eb", - "reference": "7233ac2bfdde24d672f5305f2b3f6b5d741ef8eb", + "url": "https://api.github.com/repos/symfony/yaml/zipball/ea342353a3ef4f453809acc4ebc55382231d4d23", + "reference": "ea342353a3ef4f453809acc4ebc55382231d4d23", "shasum": "" }, "require": { - "php": "^5.5.9|>=7.0.8", + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", "symfony/polyfill-ctype": "~1.8" }, "conflict": { - "symfony/console": "<3.4" + "symfony/console": "<4.4" }, "require-dev": { - "symfony/console": "~3.4|~4.0" + "symfony/console": "^4.4|^5.0" }, "suggest": { "symfony/console": "For validating YAML files using the lint command" }, + "bin": [ + "Resources/bin/yaml-lint" + ], "type": "library", "extra": { "branch-alias": { - "dev-master": "3.4-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -3102,25 +3628,278 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2020-05-11T07:51:54+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-20T17:43:50+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "75a63c33a8577608444246075ea0af0d052e452a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a", + "reference": "75a63c33a8577608444246075ea0af0d052e452a", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2020-07-12T23:59:07+00:00" + } + ], + "packages-dev": [ + { + "name": "phalcon/dd", + "version": "v1.1.3", + "source": { + "type": "git", + "url": "https://github.com/phalcon/dd.git", + "reference": "71a05c4f8d4b4216638f61d0c0be312799b0ab08" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phalcon/dd/zipball/71a05c4f8d4b4216638f61d0c0be312799b0ab08", + "reference": "71a05c4f8d4b4216638f61d0c0be312799b0ab08", + "shasum": "" + }, + "require": { + "ext-phalcon": "^3.0 || ^4.0", + "php": "^5.4 || ^7.0" + }, + "type": "library", + "autoload": { + "files": [ + "src/helper.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Phalcon Team", + "email": "team@phalconphp.com", + "homepage": "http://phalconphp.com/en/team" + }, + { + "name": "Contributors", + "homepage": "https://github.com/phalcon/dd/graphs/contributors" + } + ], + "description": "This package will add the `dd` and `dump` helpers to your Phalcon application.", + "homepage": "https://github.com/phalcon/dd", + "keywords": [ + "VarDumper", + "dd", + "debug", + "dump", + "phalcon", + "utils" + ], + "time": "2019-07-26T05:29:31+00:00" + }, + { + "name": "phalcon/ide-stubs", + "version": "v4.0.6", + "source": { + "type": "git", + "url": "https://github.com/phalcon/ide-stubs.git", + "reference": "d2adae3fba488ccba913a3f7fc310f23aa6de4a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phalcon/ide-stubs/zipball/d2adae3fba488ccba913a3f7fc310f23aa6de4a3", + "reference": "d2adae3fba488ccba913a3f7fc310f23aa6de4a3", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "require-dev": { + "squizlabs/php_codesniffer": "3.*", + "vimeo/psalm": "^3.4" + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Phalcon Team", + "email": "team@phalcon.io", + "homepage": "https://phalcon.io/en-us/team" + }, + { + "name": "Contributors", + "homepage": "https://github.com/phalcon/ide-stubs/graphs/contributors" + } + ], + "description": "The most complete Phalcon Framework IDE stubs library which enables autocompletion in modern IDEs.", + "homepage": "https://phalcon.io", + "keywords": [ + "Devtools", + "Eclipse", + "autocomplete", + "ide", + "netbeans", + "phalcon", + "phpstorm", + "stub", + "stubs" + ], + "funding": [ + { + "url": "https://github.com/phalcon", + "type": "github" + }, + { + "url": "https://opencollective.com/phalcon", + "type": "open_collective" + } + ], + "time": "2020-05-18T20:16:38+00:00" + }, + { + "name": "squizlabs/php_codesniffer", + "version": "2.9.2", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "2acf168de78487db620ab4bc524135a13cfe6745" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745", + "reference": "2acf168de78487db620ab4bc524135a13cfe6745", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.1.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "bin": [ + "scripts/phpcs", + "scripts/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "classmap": [ + "CodeSniffer.php", + "CodeSniffer/CLI.php", + "CodeSniffer/Exception.php", + "CodeSniffer/File.php", + "CodeSniffer/Fixer.php", + "CodeSniffer/Report.php", + "CodeSniffer/Reporting.php", + "CodeSniffer/Sniff.php", + "CodeSniffer/Tokens.php", + "CodeSniffer/Reports/", + "CodeSniffer/Tokenizers/", + "CodeSniffer/DocGenerators/", + "CodeSniffer/Standards/AbstractPatternSniff.php", + "CodeSniffer/Standards/AbstractScopeSniff.php", + "CodeSniffer/Standards/AbstractVariableSniff.php", + "CodeSniffer/Standards/IncorrectPatternException.php", + "CodeSniffer/Standards/Generic/Sniffs/", + "CodeSniffer/Standards/MySource/Sniffs/", + "CodeSniffer/Standards/PEAR/Sniffs/", + "CodeSniffer/Standards/PSR1/Sniffs/", + "CodeSniffer/Standards/PSR2/Sniffs/", + "CodeSniffer/Standards/Squiz/Sniffs/", + "CodeSniffer/Standards/Zend/Sniffs/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "http://www.squizlabs.com/php-codesniffer", + "keywords": [ + "phpcs", + "standards" + ], + "time": "2018-11-07T22:31:41+00:00" }, { "name": "vlucas/phpdotenv", - "version": "v2.6.5", + "version": "v2.6.6", "source": { "type": "git", "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "2e977311ffb17b2f82028a9c36824647789c6365" + "reference": "e1d57f62db3db00d9139078cbedf262280701479" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/2e977311ffb17b2f82028a9c36824647789c6365", - "reference": "2e977311ffb17b2f82028a9c36824647789c6365", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/e1d57f62db3db00d9139078cbedf262280701479", + "reference": "e1d57f62db3db00d9139078cbedf262280701479", "shasum": "" }, "require": { "php": "^5.3.9 || ^7.0 || ^8.0", - "symfony/polyfill-ctype": "^1.16" + "symfony/polyfill-ctype": "^1.17" }, "require-dev": { "ext-filter": "*", @@ -3164,13 +3943,24 @@ "env", "environment" ], - "time": "2020-06-02T14:06:52+00:00" + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2020-07-14T17:54:18+00:00" } ], "aliases": [], "minimum-stability": "stable", "stability-flags": { - "phalcon/incubator-acl": 15 + "phalcon/incubator-acl": 15, + "phalcon/incubator-test": 15 }, "prefer-stable": false, "prefer-lowest": false, @@ -3178,5 +3968,6 @@ "php": ">=7.2", "ext-phalcon": "^4.0" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "1.1.0" } diff --git a/tests/unit/Test/Codeception/FunctionalTestCaseTest.php b/tests/unit/Test/Codeception/FunctionalTestCaseTest.php deleted file mode 100644 index 0029097f3..000000000 --- a/tests/unit/Test/Codeception/FunctionalTestCaseTest.php +++ /dev/null @@ -1,67 +0,0 @@ - - * @package Phalcon\Test\Test\Traits - * @group Acl - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file docs/LICENSE.txt - * - * If you did not receive a copy of the license and are unable to obtain it - * through the world-wide-web, please send an email to license@phalconphp.com - * so that we can send you a copy immediately. - */ -class FunctionalTestCaseTest extends Unit -{ - public function testUsesTrait() - { - $mockService = $this->getMockBuilder(Di::class) - ->disableOriginalConstructor() - ->getMock(); - - $mockMeta = $this->getMockBuilder(Metadata::class) - ->disableOriginalConstructor() - ->setMethods(['getService']) - ->getMock(); - - $mockMeta->method('getService') - ->willReturn($mockService); - - /** @var FunctionalTestCase|\PHPUnit_Framework_MockObject_MockObject $testSubject */ - $testSubject = $this->getMockBuilder(FunctionalTestCase::class) - ->disableOriginalConstructor() - ->setMethods(['getMetadata']) - ->getMock(); - - $testSubject->method('getMetadata') - ->willReturn($mockMeta); - - $testSubject->setUp(); - - - - $reflectionProperty = new \ReflectionProperty( - FunctionalTestCase::class, - 'di' - ); - - $reflectionProperty->setAccessible(true); - - $this->assertInstanceOf( - PhDispatcher::class, - $reflectionProperty->getValue($testSubject)->get('dispatcher') - ); - } -} diff --git a/tests/unit/Test/Codeception/ModelTestCaseTest.php b/tests/unit/Test/Codeception/ModelTestCaseTest.php deleted file mode 100644 index 957997b80..000000000 --- a/tests/unit/Test/Codeception/ModelTestCaseTest.php +++ /dev/null @@ -1,67 +0,0 @@ - - * @package Phalcon\Test\Test\Traits - * @group Acl - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file docs/LICENSE.txt - * - * If you did not receive a copy of the license and are unable to obtain it - * through the world-wide-web, please send an email to license@phalconphp.com - * so that we can send you a copy immediately. - */ -class ModelTestCaseTest extends Unit -{ - public function testUsesTrait() - { - $mockService = $this->getMockBuilder(Di::class) - ->disableOriginalConstructor() - ->getMock(); - - $mockMeta = $this->getMockBuilder(Metadata::class) - ->disableOriginalConstructor() - ->setMethods(['getService']) - ->getMock(); - - $mockMeta->method('getService') - ->willReturn($mockService); - - /** @var ModelTestCase $testSubject */ - $testSubject = $this->getMockBuilder(ModelTestCase::class) - ->disableOriginalConstructor() - ->setMethods(['getMetadata']) - ->getMock(); - - $testSubject->method('getMetadata') - ->willReturn($mockMeta); - - $testSubject->setUp(); - - - - $reflectionProperty = new \ReflectionProperty( - ModelTestCase::class, - 'di' - ); - - $reflectionProperty->setAccessible(true); - - $this->assertInstanceOf( - PhModelManager::class, - $reflectionProperty->getValue($testSubject)->get('modelsManager') - ); - } -} diff --git a/tests/unit/Test/Codeception/UnitTestCaseTest.php b/tests/unit/Test/Codeception/UnitTestCaseTest.php deleted file mode 100644 index 342da0114..000000000 --- a/tests/unit/Test/Codeception/UnitTestCaseTest.php +++ /dev/null @@ -1,66 +0,0 @@ - - * @package Phalcon\Test\Test\Traits - * @group Acl - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file docs/LICENSE.txt - * - * If you did not receive a copy of the license and are unable to obtain it - * through the world-wide-web, please send an email to license@phalconphp.com - * so that we can send you a copy immediately. - */ -class UnitTestCaseTest extends Unit -{ - public function testUsesTrait() - { - $mockService = $this->getMockBuilder(Di::class) - ->disableOriginalConstructor() - ->getMock(); - - $mockMeta = $this->getMockBuilder(Metadata::class) - ->disableOriginalConstructor() - ->setMethods(['getService']) - ->getMock(); - - $mockMeta->method('getService') - ->willReturn($mockService); - - /** @var UnitTestCase $testSubject */ - $testSubject = $this->getMockBuilder(UnitTestCase::class) - ->disableOriginalConstructor() - ->getMock(); - - $testSubject->method('getMetadata') - ->willReturn($mockMeta); - - $testSubject->setUp(); - - - - $reflectionProperty = new \ReflectionProperty( - UnitTestCase::class, - 'di' - ); - - $reflectionProperty->setAccessible(true); - - $this->assertInstanceOf( - DiInterface::class, - $reflectionProperty->getValue($testSubject) - ); - } -} diff --git a/tests/unit/Test/FunctionalTestCaseTest.php b/tests/unit/Test/FunctionalTestCaseTest.php deleted file mode 100644 index c8598d852..000000000 --- a/tests/unit/Test/FunctionalTestCaseTest.php +++ /dev/null @@ -1,42 +0,0 @@ - - * @package Phalcon\Test\Test\Traits - * @group Acl - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file docs/LICENSE.txt - * - * If you did not receive a copy of the license and are unable to obtain it - * through the world-wide-web, please send an email to license@phalconphp.com - * so that we can send you a copy immediately. - */ -class FunctionalTestCaseTest extends Unit -{ - /** @var UnitTester */ - protected $tester; - - public function testUnitPlaceholder() - { - $this->tester->amGoingTo('Confirm That Place Holder Is Fine'); - - $testSubject = $this->getMockBuilder(FunctionalTestCase::class) - ->disableOriginalConstructor() - ->getMockForAbstractClass(); - - $this->assertInstanceOf( - PHPUnitTestCase::class, - $testSubject - ); - } -} diff --git a/tests/unit/Test/ModelTestCaseTest.php b/tests/unit/Test/ModelTestCaseTest.php deleted file mode 100644 index 888175f93..000000000 --- a/tests/unit/Test/ModelTestCaseTest.php +++ /dev/null @@ -1,42 +0,0 @@ - - * @package Phalcon\Test\Test\Traits - * @group Acl - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file docs/LICENSE.txt - * - * If you did not receive a copy of the license and are unable to obtain it - * through the world-wide-web, please send an email to license@phalconphp.com - * so that we can send you a copy immediately. - */ -class ModelTestCaseTest extends Unit -{ - /** @var UnitTester */ - protected $tester; - - public function testUnitPlaceholder() - { - $this->tester->amGoingTo('Confirm That Place Holder Is Fine'); - - $testSubject = $this->getMockBuilder(ModelTestCase::class) - ->disableOriginalConstructor() - ->getMockForAbstractClass(); - - $this->assertInstanceOf( - PHPUnitTestCase::class, - $testSubject - ); - } -} diff --git a/tests/unit/Test/PHPUnit/FunctionalTestCaseTest.php b/tests/unit/Test/PHPUnit/FunctionalTestCaseTest.php deleted file mode 100644 index d5e43d04a..000000000 --- a/tests/unit/Test/PHPUnit/FunctionalTestCaseTest.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @package Phalcon\Test\Test\Traits - * @group Acl - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file docs/LICENSE.txt - * - * If you did not receive a copy of the license and are unable to obtain it - * through the world-wide-web, please send an email to license@phalconphp.com - * so that we can send you a copy immediately. - */ -class FunctionalTestCaseTest extends Unit -{ - public function testUsesTrait() - { - /** @var FunctionalTestCase $testSubject */ - $testSubject = $this->getMockBuilder(FunctionalTestCase::class) - ->disableOriginalConstructor() - ->getMock(); - - $testSubject->setUp(); - - - - $reflectionProperty = new \ReflectionProperty( - FunctionalTestCase::class, - 'di' - ); - - $reflectionProperty->setAccessible(true); - - $this->assertInstanceOf( - PhDispatcher::class, - $reflectionProperty->getValue($testSubject)->get('dispatcher') - ); - } -} diff --git a/tests/unit/Test/PHPUnit/ModelTestCaseTest.php b/tests/unit/Test/PHPUnit/ModelTestCaseTest.php deleted file mode 100644 index ff7116a78..000000000 --- a/tests/unit/Test/PHPUnit/ModelTestCaseTest.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @package Phalcon\Test\Test\Traits - * @group Acl - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file docs/LICENSE.txt - * - * If you did not receive a copy of the license and are unable to obtain it - * through the world-wide-web, please send an email to license@phalconphp.com - * so that we can send you a copy immediately. - */ -class ModelTestCaseTest extends Unit -{ - public function testUsesTrait() - { - /** @var ModelTestCase $testSubject */ - $testSubject = $this->getMockBuilder(ModelTestCase::class) - ->disableOriginalConstructor() - ->getMock(); - - $testSubject->setUp(); - - - - $reflectionProperty = new \ReflectionProperty( - ModelTestCase::class, - 'di' - ); - - $reflectionProperty->setAccessible(true); - - $this->assertInstanceOf( - PhModelManager::class, - $reflectionProperty->getValue($testSubject)->get('modelsManager') - ); - } -} diff --git a/tests/unit/Test/PHPUnit/UnitTestCaseTest.php b/tests/unit/Test/PHPUnit/UnitTestCaseTest.php deleted file mode 100644 index 725c1bd5d..000000000 --- a/tests/unit/Test/PHPUnit/UnitTestCaseTest.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @package Phalcon\Test\Test\Traits - * @group Acl - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file docs/LICENSE.txt - * - * If you did not receive a copy of the license and are unable to obtain it - * through the world-wide-web, please send an email to license@phalconphp.com - * so that we can send you a copy immediately. - */ -class UnitTestCaseTest extends Unit -{ - public function testUsesTrait() - { - /** @var UnitTestCase $testSubject */ - $testSubject = $this->getMockBuilder(UnitTestCase::class) - ->disableOriginalConstructor() - ->getMock(); - - $testSubject->setUp(); - - - - $reflectionProperty = new \ReflectionProperty( - UnitTestCase::class, - 'di' - ); - - $reflectionProperty->setAccessible(true); - - $this->assertInstanceOf( - DiInterface::class, - $reflectionProperty->getValue($testSubject) - ); - } -} diff --git a/tests/unit/Test/Traits/ModelTestCaseTest.php b/tests/unit/Test/Traits/ModelTestCaseTest.php deleted file mode 100644 index 7c373f1d0..000000000 --- a/tests/unit/Test/Traits/ModelTestCaseTest.php +++ /dev/null @@ -1,116 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\Test\Traits; - -use Phalcon\Config; -use Phalcon\Db\Adapter\Pdo\Mysql; -use Phalcon\Di\FactoryDefault; -use Phalcon\Test\Codeception\ModelTestCase as ModelTest; -use Phalcon\Test\Traits\ModelTestCase; - -class ModelTestCaseTest extends ModelTest -{ - /** @var ModelTestCase */ - protected $testSubject = null; - - public function _before() - { - $this->testSubject = $this->di->get( - ModelTest::class - ); - } - - public function testDbWithDb() - { - $mockDb = $this->getMockBuilder(Mysql::class) - ->disableOriginalConstructor() - ->getMock(); - - $this->di = $this->getMockBuilder(FactoryDefault::class) - ->disableOriginalConstructor() - ->setMethods(['has', 'get']) - ->getMock(); - - $this->di->expects($this->once()) - ->method('has') - ->with('db') - ->willReturn(true); - - $this->di->expects($this->once()) - ->method('get') - ->willReturn($mockDb); - - $this->testSubject->setDI($this->di); - - - - $reflectionMethod = new \ReflectionMethod( - ModelTest::class, - 'setDb' - ); - - $reflectionMethod->setAccessible(true); - - $this->assertSame( - $mockDb, - $reflectionMethod->invoke($this->testSubject) - ); - } - - public function testDbWithoutConfig() - { - $this->testSubject = $this->getMockBuilder(ModelTest::class) - ->setMethods(['getConfig']) - ->getMock(); - - $this->testSubject->config = $this->getMockBuilder(Config::class) - ->disableOriginalConstructor() - ->getMock(); - - $this->testSubject->expects($this->never()) - ->method('getConfig'); - - $this->di = $this->getMockBuilder(FactoryDefault::class) - ->disableOriginalConstructor() - ->setMethods(['has', 'set']) - ->getMock(); - - $this->di->expects($this->once()) - ->method('has') - ->with('db') - ->willReturn(false); - - $this->di->expects($this->once()) - ->method('set') - ->with('db', $this->isInstanceOf(\Closure::class)); - - $this->testSubject->setDI($this->di); - - - - $reflectionMethod = new \ReflectionMethod( - ModelTest::class, - 'setDb' - ); - - $reflectionMethod->setAccessible(true); - - $reflectionMethod->invoke($this->testSubject); - } -} diff --git a/tests/unit/Test/Traits/ResultSetTest.php b/tests/unit/Test/Traits/ResultSetTest.php deleted file mode 100644 index 618ba76e3..000000000 --- a/tests/unit/Test/Traits/ResultSetTest.php +++ /dev/null @@ -1,128 +0,0 @@ - - * @package Phalcon\Test\Test\Traits - * @group Acl - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file docs/LICENSE.txt - * - * If you did not receive a copy of the license and are unable to obtain it - * through the world-wide-web, please send an email to license@phalconphp.com - * so that we can send you a copy immediately. - */ -class ResultSetTest extends Test -{ - use ResultSet; - - /** @var \Phalcon\Test\Traits\ResultSet */ - protected $testSubject = null; - - public function setUp() - { - $this->testSubject = $this; - } - - public function testCanMockResultSet() - { - $mockModel = $this->getMockBuilder(Model::class) - ->setMockClassName('ClassA') - ->disableOriginalConstructor() - ->getMock(); - - $mockSecondModel = $this->getMockBuilder(Model::class) - ->setMockClassName('ClassB') - ->disableOriginalConstructor() - ->getMock(); - - $mockThirdModel = $this->getMockBuilder(Model::class) - ->setMockClassName('ClassC') - ->disableOriginalConstructor() - ->getMock(); - - $mockData = [ - $mockModel, - $mockSecondModel, - $mockThirdModel, - ]; - - /** @var \Phalcon\Mvc\Model\Resultset $mockResultSet */ - $mockResultSet = $this->testSubject->mockResultSet($mockData); - - //Testing Count - $this->assertEquals( - 3, - $mockResultSet->count() - ); - - //Testing Rewind/Valid/Current/Key/Next - foreach ($mockResultSet as $currentKey => $testModel) { - $this->assertSame( - $mockData[$currentKey], - $testModel - ); - } - - //Testing getFirst - $this->assertSame( - $mockModel, - $mockResultSet->getFirst() - ); - - //Testing getLast - $this->assertSame( - $mockThirdModel, - $mockResultSet->getLast() - ); - - //Testing toArray - $this->assertSame( - $mockData, - $mockResultSet->toArray() - ); - } - - public function testCanMockEmptyResultSet() - { - /** @var \Phalcon\Mvc\Model\Resultset $mockResultSet */ - $mockResultSet = $this->testSubject->mockResultset([]); - - $this->assertEquals( - 0, - $mockResultSet->count() - ); - - $this->assertFalse( - $mockResultSet->getFirst() - ); - - $this->assertFalse( - $mockResultSet->getLast() - ); - } - - public function testCanUseOtherResultSetClasses() - { - $mockResultset = $this->mockResultset( - [], - Simple::class - ); - - $this->assertInstanceOf( - Simple::class, - $mockResultset - ); - } -} diff --git a/tests/unit/Test/Traits/UnitTestCaseTest.php b/tests/unit/Test/Traits/UnitTestCaseTest.php deleted file mode 100644 index 931eec6c1..000000000 --- a/tests/unit/Test/Traits/UnitTestCaseTest.php +++ /dev/null @@ -1,57 +0,0 @@ - | - +------------------------------------------------------------------------+ -*/ - -namespace Phalcon\Test\Test\Traits; - -use Phalcon\Test\Codeception\UnitTestCase as Unit; -use Phalcon\Config; -use Phalcon\Test\Traits\UnitTestCase; -use PHPUnit_Framework_MockObject_MockObject; - -class UnitTestCaseTest extends Unit -{ - /** @var UnitTestCase|\PHPUnit_Framework_MockObject_MockObject */ - protected $testSubject = null; - - public function _before() - { - $this->testSubject = $this->getMockBuilder(UnitTestCase::class)->getMockForTrait(); - } - - public function testConfig() - { - $this->tester->amGoingTo('Confirm Testing Fallback Works'); - - /** @var Config|PHPUnit_Framework_MockObject_MockObject $mockConfig */ - $mockConfig = $this->getMockBuilder(Config::class)->getMock(); - - $this->assertNull($this->testSubject->getConfig()); - - $this->di->set('config', $mockConfig); - - $this->assertSame( - $this->testSubject, - $this->testSubject->setConfig($mockConfig) - ); - - $this->assertSame( - $mockConfig, - $this->testSubject->getConfig() - ); - } -} diff --git a/tests/unit/Test/UnitTestCaseTest.php b/tests/unit/Test/UnitTestCaseTest.php deleted file mode 100644 index d540e22e9..000000000 --- a/tests/unit/Test/UnitTestCaseTest.php +++ /dev/null @@ -1,42 +0,0 @@ - - * @package Phalcon\Test\Test\Traits - * @group Acl - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file docs/LICENSE.txt - * - * If you did not receive a copy of the license and are unable to obtain it - * through the world-wide-web, please send an email to license@phalconphp.com - * so that we can send you a copy immediately. - */ -class UnitTestCaseTest extends Unit -{ - /** @var UnitTester */ - protected $tester; - - public function testUnitPlaceholder() - { - $this->tester->amGoingTo('Confirm That Place Holder Is Fine'); - - $testSubject = $this->getMockBuilder(UnitTestCase::class) - ->disableOriginalConstructor() - ->getMockForAbstractClass(); - - $this->assertInstanceOf( - PHPUnitTestCase::class, - $testSubject - ); - } -}