<?php $b = b(); $b->do_get(url('index::raise_template')); eq(200, $b->status()); meq('Error: raise test', $b->body()); mneq('rt:invalid', $b->body()); $b->do_get(url('index::raise_template_parent')); eq(200, $b->status()); meq('Error: raise test', $b->body()); mneq('rt:invalid', $b->body());
<?php $b = b(); $b->do_get(url('index::form_obj')); meq('ABC', $b->body()); meq(10, $b->body()); meq(999, $b->body()); $b->do_get(url('index::form_obj') . '?value=XYZ'); mneq('ABC', $b->body()); meq('XYZ', $b->body()); meq(10, $b->body()); meq(999, $b->body());
<?php $b = new \testman\Browser(); $b->do_get(url('test_index::module_raise')); eq(403, $b->status()); mneq('INDEX', $b->body()); meq('BEFORE_FLOW_HANDLE', $b->body()); meq('[EXCEPTION]', $b->body()); meq('INIT_TEMPLATE', $b->body()); meq('BEFORE_TEMPLATE', $b->body()); meq('AFTER_TEMPLATE', $b->body()); meq('BEFORE_FLOW_PRINT_TEMPLATE', $b->body());
<?php $b = b(); $b->do_get(url('index::template_parent')); eq(200, $b->status()); meq('Parent', $b->body()); meq('default_child', $b->body()); $b->do_get(url('index::template_child')); eq(200, $b->status()); meq('Parent', $b->body()); mneq('default_child', $b->body()); meq('new_child', $b->body()); meq('default_grandchild', $b->body()); $b->do_get(url('index::template_grandchild')); eq(200, $b->status()); meq('Parent', $b->body()); mneq('default_child', $b->body()); meq('new_child', $b->body()); mneq('default_grandchild', $b->body()); meq('new_grandchild', $b->body()); $b->do_get(url('index::template_grandchild_super')); eq(200, $b->status()); mneq('Parent', $b->body()); meq('Super', $b->body()); mneq('default_super_child', $b->body()); meq('new_child', $b->body()); mneq('default_grandchild', $b->body()); meq('new_grandchild', $b->body());
<?php $b = b(); $b->do_get(url('index::map_url')); meq(url('index::template_abc'), $b->body()); mneq(url('index::abc'), $b);
<?php $b = new \testman\Browser(); $b->do_get(url('test_index::put_block')); meq('AAA', $b->body()); meq('BBB', $b->body()); meq('NONE', $b->body()); $b = new \testman\Browser(); $b->vars('hoge', 'a'); $b->do_get(url('test_index::put_block')); meq('AAA', $b->body()); meq('BBB', $b->body()); meq('a', $b->body()); mneq('CCC', $b->body()); $b = new \testman\Browser(); $b->vars('hoge', 'b'); $b->do_get(url('test_index::put_block')); meq('AAA', $b->body()); meq('BBB', $b->body()); meq('b', $b->body()); mneq('CCC', $b->body());
<?php $template = new \ebi\Template(); $src = $template->read(__DIR__ . '/resources/allinone.html', 'abc'); meq('ABC', $src); mneq('INDEX', $src); mneq('DEF', $src); meq('IFOOTER', $src); $template = new \ebi\Template(); $src = $template->read(__DIR__ . '/resources/allinone.html', 'def'); meq('DEF', $src); mneq('INDEX', $src); mneq('ABC', $src); mneq('IFOOTER', $src); meq('DFOOTER', $src); $template = new \ebi\Template(); $src = $template->read(__DIR__ . '/resources/allinone.html', 'xyz'); meq('XYZ', $src); mneq('INDEX', $src); mneq('ABC', $src); meq('IFOOTER', $src); $template = new \ebi\Template(); $src = $template->read(__DIR__ . '/resources/allinone.html', 'index'); meq('INDEX', $src); meq('IFOOTER', $src); mneq('DFOOTER', $src); mneq('ABC', $src);