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

Class: ActiveRecord

Source Location: /test/mockActiveRecord/active_record.php

Class Overview


Mock ActiveRecord class for testing


Variables

Methods



Class Details

[line 23]
Mock ActiveRecord class for testing



[ Top ]


Class Variables

$expected_query =  null

[line 29]

Expected query



Tags:

access:  private

Type:   string


[ Top ]

$expected_result =  null

[line 35]

Expected result



Tags:

access:  private

Type:   string


[ Top ]



Class Methods


method expect_query [line 46]

void expect_query( string $expected, string $result)

Set expected query and return

This is a test routine that does not exist in the real ActiveRecord.




Tags:

access:  public


Parameters:

string   $expected   Expected query
string   $result   Result to be returned when expected query is received.

[ Top ]

method send [line 61]

string send( string $column)

Get contents of one column of record selected by id and table

When called, $id identifies one record in the table identified by $table. Fetch from the database the contents of column $column of this record.




Tags:

return:  Column contents


Parameters:

string   $column   Name of column to retrieve

[ Top ]


Documentation generated on Thu, 04 May 2006 19:47:13 -0600 by phpDocumentor 1.3.0RC4