Class SimpleSpec
- UnitTestCase
- SimpleSpec
Direct known subclasses
Describe_Argument_Lexer
,
Describe_array_lookup
,
Describe_h2o_tag_registration
,
Describe_hash_loader
,
Describe_if_tag
,
Describe_include_tag
,
Describe_Lexer
,
Describe_local_variable
,
Describe_object_context_lookup
,
Describe_Parser
,
Describe_Parser_Patterns
,
Describe_Template
,
Describe_comment_node
,
Describe_text_node
,
Describe_variable_node
,
Describe_context_lookup_basic_data_types
,
Describe_file_loader
,
Describe_for_tag
,
Describe_H2o_block_tag
,
Describe_h2o_block_variable
,
Describe_h2o_extends_tag
,
Describe_h2o_filter_registration
License:
for all
Author: - Taylor Luk aka 'speedmax'
Example: class Describe_his_mum extends SimpleSpec { function prepare() { $this->mum = new Mum(array('mood'=>'angry')); } function should_be_very_angry_when_i_break_my_lunch_box() { expects($this->mum->mood)->should_be('angry'); } function should_be_very_happy_when_i_punch_her_in_the_face() { punch($this->mum); expects($this->mum->mood)->should_be('happy'); } function cleanup() { unset($this->mum); // kill da mum } }
Located at vendors/h2o/spec/spec.php
Author: - Taylor Luk aka 'speedmax'
Example: class Describe_his_mum extends SimpleSpec { function prepare() { $this->mum = new Mum(array('mood'=>'angry')); } function should_be_very_angry_when_i_break_my_lunch_box() { expects($this->mum->mood)->should_be('angry'); } function should_be_very_happy_when_i_punch_her_in_the_face() { punch($this->mum); expects($this->mum->mood)->should_be('happy'); } function cleanup() { unset($this->mum); // kill da mum } }
Located at vendors/h2o/spec/spec.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
Magic methods summary
Properties summary
public
mixed
|
$target | |
private
mixed
|
$negate | |
private
mixed
|
$matcher |