Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vagrant@vvv:~$ cd /srv/www/wordpress-default
- vagrant@vvv:/srv/www/wordpress-default$ wp scaffold plugin-tests example-plugin
- Success: Created test files.
- vagrant@vvv:/srv/www/wordpress-default$ cd public_html/wp-content/plugins/example-plugin
- vagrant@vvv:/srv/www/wordpress-default/public_html/wp-content/plugins/example-plugin$ bash bin/install-wp-tests.sh wordpress_example_test root root localhost latest
- + install_wp
- + '[' -d /srv/www/wordpress-develop/public_html/src/ ']'
- + return
- + install_test_suite
- ++ uname -s
- + [[ Linux == \D\a\r\w\i\n ]]
- + local ioption=-i
- + '[' '!' -d /srv/www/wordpress-develop/public_html/tests/phpunit/ ']'
- + '[' '!' -f wp-tests-config.php ']'
- + download https://develop.svn.wordpress.org/tags/5.0.3/wp-tests-config-sample.php /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
- ++ which curl
- + '[' /usr/bin/curl ']'
- + curl -s https://develop.svn.wordpress.org/tags/5.0.3/wp-tests-config-sample.php
- ++ echo /srv/www/wordpress-develop/public_html/src/
- ++ sed 's:/\+$::'
- + WP_CORE_DIR=/srv/www/wordpress-develop/public_html/src
- + sed -i 's:dirname( __FILE__ ) . '\''/src/'\'':'\''/srv/www/wordpress-develop/public_html/src/'\'':' /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
- + sed -i s/youremptytestdbnamehere/wordpress_example_test/ /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
- + sed -i s/yourusernamehere/root/ /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
- + sed -i s/yourpasswordhere/root/ /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
- + sed -i 's|localhost|localhost|' /srv/www/wordpress-develop/public_html/tests/phpunit//wp-tests-config.php
- + install_db
- + '[' false = true ']'
- + PARTS=(${DB_HOST//\:/ })
- + local PARTS
- + local DB_HOSTNAME=localhost
- + local DB_SOCK_OR_PORT=
- + local EXTRA=
- + '[' -z localhost ']'
- ++ echo
- ++ grep -e '^[0-9]\{1,\}$'
- + '[' ']'
- + '[' -z ']'
- + '[' -z localhost ']'
- + EXTRA=' --host=localhost --protocol=tcp'
- + mysqladmin create wordpress_example_test --user=root --password=root --host=localhost --protocol=tcp
- vagrant@vvv:/srv/www/wordpress-default/public_html/wp-content/plugins/example-plugin$ phpunit
- Installing...
- Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
- Not running ajax tests. To execute these, use --group ajax.
- Not running ms-files tests. To execute these, use --group ms-files.
- Not running external-http tests. To execute these, use --group external-http.
- PHPUnit 6.5.13 by Sebastian Bergmann and contributors.
- Time: 1.6 seconds, Memory: 24.00MB
- No tests executed!
- vagrant@vvv:/srv/www/wordpress-default/public_html/wp-content/plugins/example-plugin$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement