dox Executable Documentation

Leave breadcrumbs

Store breadcrumbs in cookie

Given the class 'test\\FooAction' with the body ' public $foo; '
Given the action argument 'foo' is 'bar'
When I execute the action 'test\\SomeAction'
Then the breadcrumbs array(array('Some Action', 'test\\SomeAction', array('foo' => 'bar'))) should be stored

No breadcrumbs to show

When I execute the action 'test\\SomeAction'
Then there should be 1 breadcrumbs
Then breadcrumb 1 should have the caption 'Some Action'

Show breadcrumbs

Given the stored breadcrumbs array(array('one', 'first', array()), array('two', 'second', array()))
When I execute the action 'test\\SomeAction'
Then there should be 3 breadcrumbs
Then breadcrumb 1 should have the caption 'one'
Then breadcrumb 1 should have the link target 'execute?action=first'

Push action

Given the stored breadcrumbs array(array('one', 'first', array()))
When I execute the action 'test\\SomeAction'
Then the breadcrumbs array(array('one', 'first', array()), array('Some Action', 'test\\SomeAction', array())) should be stored

Pop action

Given the stored breadcrumbs array(array('one', 'first', array()), array('two', 'test\\SomeAction', array()), array('three', 'test\\SomeAction', array('foo' => 'bar')), array('four', '?action=second'))
When I execute the action 'test\\SomeAction'
Then the breadcrumbs array(array('one', 'first', array()), array('Some Action', 'test\\SomeAction', array())) should be stored