2017 © Pedro Peláez
 

library phpunit_skeleton

skeleton for php users.

image

tddbc/phpunit_skeleton

skeleton for php users.

  • Monday, September 11, 2017
  • by NEKOGET
  • Repository
  • 24 Watchers
  • 4 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

TDDBC for PHP with PHPUnit

これは、TDDBCのPHP向けPHPUnitプロジェクトです。, (*1)

動作環境

  • PHP7.3以上
    • PHP7.2の場合は、https://github.com/tddbc/php_phpunit/tree/phpunit-8 を利用してください

セットアップ

curl -sS https://getcomposer.org/installer | php
php composer.phar install

./vendor/bin/phpunitを実行して, (*2)

$ ./vendor/bin/phpunit
PHPUnit 9.2.5 by Sebastian Bergmann and contributors.

.                                                                   1 / 1 (100%)

Time: 00:00.683, Memory: 4.00 MB

OK (1 test, 1 assertion)
$ 

のようにテストが正常終了すればOKです。, (*3)

testdox アノテーションについて

make testでのテスト実行時に TestDox 形式で結果が出力されるようになっています。, (*4)

クラスやメソッドの PHPDoc に@testdox XXXと記述することでテスト結果の出力を任意の文字列にすることができます。, (*5)

記述方法については ExampleTest.php を参照してください。, (*6)

ライセンス

三条項BSDライセンス (3-clause BSD license)です。 詳しくはプロジェクト直下のLICENSEを読んでください。, (*7)

The Versions

11/09 2017

dev-master

9999999-dev

skeleton for php users.

  Sources   Download

BSD-3-Clause

The Requires

  • php >= 7.0

 

The Development Requires

by tddbc

20/02 2016

dev-update-dependencies

dev-update-dependencies

skeleton for php users.

  Sources   Download

BSD-3-Clause

The Requires

  • php >= 5.6

 

The Development Requires

by tddbc