Download the PHP package bojaghi/wp-tests without Composer

On this page you can find all versions of the php package bojaghi/wp-tests. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-tests

WP Tests

WordPress 테스트 수트를 재활용하기 위한 패키지입니다.

사용법

vendor/bin/wp-tests 스크립트는 테스트를 위해 사용되는 스크립트입니다. 이 스크립트로 아래 와 같은 동작을 진행할 수 있습니다.

설치하기

Development 패키지로 설치합니다.

아래 명령어를 이용해 테스트 사용자와, 해당 사용자에 테스트 DB의 권한을 지정합니다.

섫정 복제하기

아래 명령어를 이용해 wp-tests 패키지로부터 테스트에 필요한 기초 설정을 가져옵니다.

테스트 데이터베이스와 테스트 수트 설치

테스트에 필요한 설정들이 잘 심어졌다면, 다음 명령으로 테스트 데이터베이스를 생성합니다. 워드프레스 테스트 수트도 같이 설치됩니다. 이 때 subversion 이 필요합니다.

테스트하기

아래 명령어를 사용해 PhpUnit을 실행할 수 있습니다.

정상 동작을 위해 phpunit.xml 파일을 열어

부분을 주석 처리합니다.

이렇게 처리하여 아주 간단한 TestSample.php에 대해 테스트를 진행할 수 있습니다.


All versions of wp-tests with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bojaghi/wp-tests contains the following files

Loading the files please wait ...