CodeGen_PECL
[ class tree: CodeGen_PECL ] [ index: CodeGen_PECL ] [ all elements ]

Class: CodeGen_PECL_Element_Test

Source Location: /CodeGen_PECL-1.1.3/PECL/Element/Test.php

Class Overview

CodeGen_Element
   |
   --CodeGen_PECL_Element
      |
      --CodeGen_PECL_Element_Test

Class for testfile generation as needed for 'make test'


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005-2008 Hartmut Holzgraefe

Variables

Methods


Inherited Variables

Inherited Methods

Class: CodeGen_PECL_Element

CodeGen_PECL_Element::isKeyword()
Checks whether a string is a reserved name
CodeGen_PECL_Element::isType()
Checks whether a string is a valid PHP type name and returns the official name

Class Details

[line 38]
Class for testfile generation as needed for 'make test'


[ Top ]


Class Variables

$code =

[line 304]

actual test code
  • Access: protected

Type:   string


[ Top ]

$description =  ""

[line 120]

Testcase description
  • Access: protected

Type:   string


[ Top ]

$get =  false

[line 245]

GET data
  • Access: protected

Type:   string


[ Top ]

$ini =  ""

[line 149]

php.ini settings for this test
  • Access: protected

Type:   string


[ Top ]

$mode =  "plain"

[line 362]

Output block style
  • Access: protected

Type:   string


[ Top ]

$name =  ""

[line 55]

testfile basename
  • Access: protected

Type:   mixed


[ Top ]

$output =  "OK"

[line 333]

expected output for test code
  • Access: protected

Type:   string


[ Top ]

$post =  false

[line 275]

raw POST data
  • Access: protected

Type:   string


[ Top ]

$skipif =  ""

[line 190]

Test code to decide whether to skip a test
  • Access: protected

Type:   string


[ Top ]

$title =  ""

[line 91]

Testcase title
  • Access: protected

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 47]

CodeGen_PECL_Element_Test __construct( string 0)

Constructor
  • Access: public

Parameters:

string   0     testfile basename

[ Top ]

addIni   [line 180]

void addIni( string $code)

Adder for php.ini settings
  • Access: public

Parameters:

string   $code     new value for

[ Top ]

addSkipIf   [line 221]

void addSkipIf( string $code, [ $reason = ''])

Setter for skipif testcode
  • Access: public

Parameters:

string   $code     new value for
   $reason     

[ Top ]

complete   [line 400]

bool complete( )

all required properties set?
  • Access: public

[ Top ]

getCode   [line 312]

string getCode( )

Getter for test code
  • Return: value of
  • Access: public

[ Top ]

getDescription   [line 128]

string getDescription( )

Getter for testcase description
  • Return: value of
  • Access: public

[ Top ]

getGet   [line 253]

string getGet( )

Getter for GET data
  • Return: value of
  • Access: public

[ Top ]

getIni   [line 157]

string getIni( )

Getter for php.ini settings
  • Return: value of
  • Access: public

[ Top ]

getMode   [line 370]

string getMode( )

Getter for output block style
  • Return: value of
  • Access: public

[ Top ]

getName   [line 81]

string getName( )

Getter for testcase name
  • Return: value of
  • Access: public

[ Top ]

getOutput   [line 341]

string getOutput( )

Getter for expected output
  • Return: value of
  • Access: public

[ Top ]

getPost   [line 283]

string getPost( )

Getter for raw POST data
  • Return: value of
  • Access: public

[ Top ]

getSkipif   [line 198]

string getSkipif( )

Getter for skipif test code
  • Return: value of
  • Access: public

[ Top ]

getTitle   [line 99]

string getTitle( )

Getter for testcase title
  • Return: value of
  • Access: public

[ Top ]

setCode   [line 323]

void setCode( string $code)

Setter for test code
  • Access: public

Parameters:

string   $code     new value for

[ Top ]

setDescription   [line 139]

void setDescription( string $text)

Setter for testcase description
  • Access: public

Parameters:

string   $text     new value for

[ Top ]

setGet   [line 264]

void setGet( string $data)

Setter for GET data
  • Access: public

Parameters:

string   $data     new value for

[ Top ]

setIni   [line 168]

void setIni( string $code)

Setter for php.ini settings
  • Access: public

Parameters:

string   $code     new value for

[ Top ]

setMode   [line 381]

void setMode( string $mode)

Setter for output block style
  • Access: public

Parameters:

string   $mode     new value for

[ Top ]

setName   [line 63]

string setName( $name)

Setter for testcase name
  • Return: value of
  • Access: public

Parameters:

   $name     

[ Top ]

setOutput   [line 352]

void setOutput( string $data)

Setter for expected output
  • Access: public

Parameters:

string   $data     new value for

[ Top ]

setPost   [line 294]

void setPost( string $data)

Setter for raw POST data
  • Access: public

Parameters:

string   $data     new value for

[ Top ]

setSkipIf   [line 209]

void setSkipIf( string $code)

Setter for skipif testcode
  • Access: public

Parameters:

string   $code     new value for

[ Top ]

setTitle   [line 110]

void setTitle( string $title)

Setter for testcase title
  • Access: public

Parameters:

string   $title     new value for

[ Top ]

writeTest   [line 413]

void writeTest( object the $extension)

generate testcase file
  • Access: public

Parameters:

object the   $extension     complete extension context

[ Top ]


Documentation generated on Mon, 27 Sep 2010 12:00:26 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.