TDD 우분투에서 phpunit 설치

참고
[code bash]
sudo apt-get install phpunit
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
다음 패키지를 더 설치할 것입니다:
php-benchmark
제안하는 패키지:
phpunit-doc
다음 새 패키지를 설치할 것입니다:
php-benchmark phpunit
0개 업그레이드, 2개 새로 설치, 0개 지우기 및 0개 업그레이드 안 함.
323k바이트 아카이브를 받아야 합니다.
이 작업 후 4,485k바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까 [Y/n]? y
받기:1 http://ftp.daum.net/ubuntu/ lucid/universe php-benchmark 1.2.7-4 [13.5kB]
받기:2 http://ftp.daum.net/ubuntu/ lucid/universe phpunit 3.4.5-1 [310kB]
내려받기 323k바이트, 소요시간 3초 (103k바이트/초)
전에 선택하지 않은 php-benchmark 패키지를 선택합니다.
(데이터베이스 읽는중 ...현재 318741개의 파일과 디렉토리가 설치되어 있습니다.)
php-benchmark 패키지를 푸는 중입니다 (.../php-benchmark_1.2.7-4_all.deb에서) ...
전에 선택하지 않은 phpunit 패키지를 선택합니다.
phpunit 패키지를 푸는 중입니다 (.../phpunit_3.4.5-1_all.deb에서) ...
man-db에 대한 트리거를 처리하는 중입니다 ...
php-benchmark (1.2.7-4) 설정하는 중입니다 ...
phpunit (3.4.5-1) 설정하는 중입니다 ...
[/code]

아래 위치에서 2개의 파일을 다운로드 합니다.

받기:1 http://ftp.daum.net/ubuntu/ lucid/universe php-benchmark 1.2.7-4 [13.5kB]
받기:2 http://ftp.daum.net/ubuntu/ lucid/universe phpunit 3.4.5-1 [310kB]

실행파일 설치 위치는 /usr/bin/phpunit
[code php]
if (strpos('@php_bin@', '@php_bin') === 0) { set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path()); } require_once 'PHPUnit/Util/Filter.php'; PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); require 'PHPUnit/TextUI/Command.php'; define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main'); PHPUnit_TextUI_Command::main();
[/code]
lib 설치 위치는 /usr/share/php/PHPUnit/

2010.12.01
http://www.phpunit.de/
최신 3.6 매뉴얼

phpunit.de 에서 제공하는 설치 방법
[code bash]
pear install phpunit/PHPUnit [/code]
설치 위치 /usr/lib/php/PHPUnit.

 Download a release archive from http://pear.phpunit.de/get/ and extract it to a directory that is listed in the include_path of your php.ini configuration file.

(http://pear.phpunit.de/get/ 에서 다운로드 하고, php.ini 설정파에서 include_path 에 있는 디렉토리에 압축을 풉니다.)

Prepare the phpunit script:
(phpunit 스크립트를 준비합니다.)


Rename the phpunit.php script to phpunit.
(phpunit.php 스크립트 phpunit 이름을 수정합니다.)


Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).
(@php_bin@ 문자열을 인터프리터의 경로와 파일명으로 교체하세요. (보통 /usr/bin/php))


Copy it to a directory that is in your path and make it executable (chmod +x phpunit).

(당신의 경로에 복사하거나 만들어서 실행하세요. (chmod +x phpunit))

Prepare the PHPUnit/Util/PHP.php script:
(PHPUnit/Util/PHP.php 스크립트를 준비하세요.)


Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).
(@php_bin@ 문자열을 인터프리터의 경로와 파일명으로 교체하세요. (보통 /usr/bin/php))


뭔 말인지... ㅡ.ㅡ

 


'IT > TDD' 카테고리의 다른 글

OOP 객체 액션  (0) 2010/12/14
TDD 우분투에서 phpunit 설치  (0) 2010/12/08
TDD jUnit4 비교표현확장: Hamcrest  (0) 2010/12/07
TDD jUnit4 특징  (0) 2010/12/06
TDD 실습 - 은행계좌(Account) 클래스 만들기  (0) 2010/12/03
TDD 개발 진행방식  (0) 2010/12/02
트랙백 0 댓글 0개가 달렸습니다.
prev 1 ... 75 76 77 78 79 80 81 82 83 ... 548 next