This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__.'/app/autoload.php'; | |
// Path to composer autoload, if phpunit installed locally, than it should be present in from 1st autoloader | |
include_once '~/.composer/vendor/autoload.php'; | |
$configuration = \PHPUnit_Util_Configuration::getInstance(__DIR__.'/phpunit.xml.dist'); | |
$testSuite = $configuration->getTestSuiteConfiguration('functional'); | |
$i = 0; | |
foreach ($testSuite->getIterator() as $testSuite) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Usage: /home/travis/.phpenv/versions/7.0/bin/php-config [OPTION] | |
Options: | |
--prefix [/home/travis/.phpenv/versions/7.0.8] | |
--includes [-I/home/travis/.phpenv/versions/7.0.8/include/php -I/home/travis/.phpenv/versions/7.0.8/include/php/main -I/home/travis/.phpenv/versions/7.0.8/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.8/include/php/Zend -I/home/travis/.phpenv/versions/7.0.8/include/php/ext -I/home/travis/.phpenv/versions/7.0.8/include/php/ext/date/lib] | |
--ldflags [ -L/usr/lib/x86_64-linux-gnu] | |
--libs [-lcrypt -lc-client -lz -lexslt -ltidy -lresolv -lcrypt -lreadline -lncurses -lpq -lrt -lpq -lmcrypt -lltdl -lstdc++ -lcrypt -lpam -lgmp -lpng -lz -ljpeg -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl -lrt -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lssl -lcrypto -lfreetype -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio -lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$path = realpath('package/'); | |
$directoryIterator = new RecursiveDirectoryIterator($path); | |
$iterator = new RecursiveIteratorIterator($directoryIterator); | |
$regexIterator = new RegexIterator( | |
$iterator, | |
'/^\/home\/ocz\/PhpstormProjects\/dev\/package\/.+\/Form\/Type.+Type.php$/', | |
RecursiveRegexIterator::GET_MATCH, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias cc="php -d xdebug.remote_enable=0 app/console cache:clear" | |
alias unitx="php -dxdebug.remote_autostart=1 /usr/local/bin/phpunit" | |
alias oroup="php app/console oro:install --user-name=admin [email protected] --user-firstname=John --user-lastname=Doe --user-password=admin --sample-data=n --organization-name=OroCRM --no-interaction --timeout 3600" | |
alias orocs="phpcs -p --encoding=utf-8 --extensions=php --standard=psr2 `git diff --name-only`" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matrix: | |
include: | |
- php: 5.6 | |
env: APPLICATION="application/commerce-crm-ee" TESTSUITE="unit" | |
- php: 7.0 | |
env: APPLICATION="application/commerce-crm-ee" TESTSUITE="unit" | |
- php: 7.1 | |
env: APPLICATION="application/commerce-crm-ee" TESTSUITE="unit" | |
- php: 7.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
- ../../package/platform/src/Oro/Bundle/TestFrameworkBundle/Resources/config/behat.yml.dist | |
default: &default | |
gherkin: | |
filters: | |
tags: ~@not-automated&&~@skip&&~@community-edition-only | |
extensions: | |
Behat\MinkExtension: | |
browser_name: chrome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP: 7.1.2 | |
1 mln records | |
-DTO- | |
Time: 0.26642107963562, Memory: 148MB | |
-Array with dynamic adding keys- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#mod_macro https://www.cri.ensmp.fr/~coelho/mod_macro/ | |
<Macro VHostDev $baseDomain> | |
<VirtualHost *:80> | |
ServerName $baseDomain.dev | |
ServerAlias www.$baseDomain.dev | |
# Module mpm-itk | |
AssignUserID alexandr alexandr | |
DocumentRoot /home/alexandr/projects/dev/application/$baseDomain/web |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fix timezone in php | |
date.timezone=UTC | |
memory_limit=2GB | |
short_open_tag=off | |
function getCredentials() | |
{ | |
declare -A REQUIRED_CREDENTIALS | |
fields=(database_driver database_name database_user database_password) | |
for index in ${!fields[*]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"oro_website_search" : { | |
"mappings" : { | |
"oro_product_2" : { | |
"_all" : { | |
"enabled" : false | |
}, | |
"dynamic_templates" : [ { | |
"name_LOCALIZATION_ID" : { | |
"mapping" : { |