DetachedTestCase 클래스 참조

모든 멤버 목록

Public 멤버 함수

 DetachedTestCase ($command, $dry_command=false)
 getLabel ()
 run (&$reporter)
 getSize ()
_createParser (&$reporter)

Public 속성

 $_command
 $_dry_command
 $_size

상세한 설명

detached.php 파일의 21 번째 라인에서 정의되었습니다.


멤버 함수 문서화

& DetachedTestCase::_createParser ( &$  reporter  ) 

Creates the XML parser.

매개변수:
SimpleReporter $reporter Target of test results.
반환값:
SimpleTestXmlListener XML reader. protected

detached.php 파일의 92 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : getSize(), run().

00092                                         {
00093         return new SimpleTestXmlParser($reporter);
00094     }

DetachedTestCase::DetachedTestCase ( command,
dry_command = false 
)

Sets the location of the remote test.

매개변수:
string $command Test script.
string $dry_command Script for dry run. public

detached.php 파일의 32 번째 라인에서 정의되었습니다.

다음을 참조함 : $command.

00032                                                               {
00033         $this->_command = $command;
00034         $this->_dry_command = $dry_command ? $dry_command : $command;
00035         $this->_size = false;
00036     }

DetachedTestCase::getLabel (  ) 

Accessor for the test name for subclasses.

반환값:
string Name of the test. public

detached.php 파일의 43 번째 라인에서 정의되었습니다.

00043                         {
00044         return $this->_command;
00045     }

DetachedTestCase::getSize (  ) 

Accessor for the number of subtests.

반환값:
integer Number of test cases. public

detached.php 파일의 71 번째 라인에서 정의되었습니다.

다음을 참조함 : _createParser().

00071                        {
00072         if ($this->_size === false) {
00073             $shell = &new SimpleShell();
00074             $shell->execute($this->_dry_command);
00075             $reporter = &new SimpleReporter();
00076             $parser = &$this->_createParser($reporter);
00077             if (! $parser->parse($shell->getOutput())) {
00078                 trigger_error('Cannot parse incoming XML from [' . $this->_dry_command . ']');
00079                 return false;
00080             }
00081             $this->_size = $reporter->getTestCaseCount();
00082         }
00083         return $this->_size;
00084     }

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

DetachedTestCase::run ( &$  reporter  ) 

Runs the top level test for this class. Currently reads the data as a single chunk. I'll fix this once I have added iteration to the browser.

매개변수:
SimpleReporter $reporter Target of test results.
반환값:
boolean True if no failures. public

detached.php 파일의 55 번째 라인에서 정의되었습니다.

다음을 참조함 : _createParser().

00055                              {
00056         $shell = &new SimpleShell();
00057         $shell->execute($this->_command);
00058         $parser = &$this->_createParser($reporter);
00059         if (! $parser->parse($shell->getOutput())) {
00060             trigger_error('Cannot parse incoming XML from [' . $this->_command . ']');
00061             return false;
00062         }
00063         return true;
00064     }

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:


멤버 데이타 문서화

DetachedTestCase::$_command

detached.php 파일의 22 번째 라인에서 정의되었습니다.

DetachedTestCase::$_dry_command

detached.php 파일의 23 번째 라인에서 정의되었습니다.

DetachedTestCase::$_size

detached.php 파일의 24 번째 라인에서 정의되었습니다.


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.:

생성시간 : Wed Oct 28 22:59:58 2009, 프로젝트명 : XpressEngine, 생성자 :   doxygen 1.6.1