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

Class: CodeGen_MySQL_Element_Test

Source Location: /CodeGen_MySQL-1.0.0RC1/MySQL/Element/Test.php

Class Overview

CodeGen_Element
   |
   --CodeGen_MySQL_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 Details

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


[ Top ]


Class Variables

$code =

[line 120]

actual test code
  • Access: protected

Type:   string


[ Top ]

$description =  ""

[line 91]

Testcase description
  • Access: protected

Type:   string


[ Top ]

$name =  ""

[line 55]

testfile basename
  • Access: protected

Type:   mixed


[ Top ]

$result =  "OK"

[line 149]

expected result for test code
  • Access: protected

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 47]

CodeGen_MySQL_Element_Test __construct( string 0)

Constructor
  • Access: public

Parameters:

string   0     testfile basename

[ Top ]

complete   [line 179]

bool complete( )

all required properties set?
  • Access: public

[ Top ]

getCode   [line 128]

string getCode( )

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

[ Top ]

getDescription   [line 99]

string getDescription( )

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

[ Top ]

getName   [line 81]

string getName( )

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

[ Top ]

getResult   [line 157]

string getResult( )

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

[ Top ]

setCode   [line 139]

void setCode( string $code)

Setter for test code
  • Access: public

Parameters:

string   $code     new value for

[ Top ]

setDescription   [line 110]

void setDescription( string $text)

Setter for testcase description
  • Access: public

Parameters:

string   $text     new value for

[ Top ]

setName   [line 63]

string setName( $name)

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

Parameters:

   $name     

[ Top ]

setResult   [line 168]

void setResult( string $data)

Setter for expected result
  • Access: public

Parameters:

string   $data     new value for

[ Top ]

writeTest   [line 192]

void writeTest( object the $extension)

generate testcase file
  • Access: public

Parameters:

object the   $extension     complete extension context

[ Top ]


Documentation generated on Fri, 13 Feb 2009 13:00:59 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.