<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
/*
* @package Runemaster
* @copyright 2008 KUMAKURA Yousuke All rights reserved.
* @version SVN: $Id: TemplateLoadSpec.php 42 2008-08-20 15:33:33Z kumatch $
* @since File available since Release 0.1.0
*/
require_once dirname(__FILE__) . '/prepare.php';
// {{{ Describeãã³ãã¬ã¼ãèªã¿è¾¼ã¿
/**
* ãã³ãã¬ã¼ãèªã¿è¾¼ã¿ã«é¢ããSpec
*
* @package Runemaster
* @copyright 2008 KUMAKURA Yousuke All rights reserved.
* @version Release: @package_version@
* @since Class available since Release 0.1.0
*/
class Describeãã³ãã¬ã¼ãèªã¿è¾¼ã¿ extends SpecCommon
{
// {{{ properties
/**#@+
* @access public
*/
/**#@-*/
/**#@+
* @access protected
*/
/**#@-*/
/**#@+
* @access private
*/
/**#@-*/
/**#@+
* @access public
*/
public function itãã³ãã¬ã¼ãã¯inlucdeã§èªã¿è¾¼ãã§ããã®ã§phpã¿ã°ã使ãã()
{
$master = $this->_master;
$master->assign(array('title' => 'Hello, World!'));
$display = rendererInTest($master, 'TemplateLoad/UsingPHP');
$result = file_get_contents('./results/TemplateLoad/UsingPHP.html');
$this->spec($display)->should->be($result);
}
public function itãã³ãã¬ã¼ãå
ã®phpã¹ã¯ãªããã§å¤æ°ãæ±ãã()
{
$master = $this->_master;
$variables = array('items' => array('foo', 'bar', 'baz'));
$display = rendererInTest($master, 'TemplateLoad/UsingPHPWithVariable',
$variables
);
$result = file_get_contents('./results/TemplateLoad/UsingPHPWithVariable.html');
$this->spec($display)->should->be($result);
}
/**#@-*/
/**#@+
* @access protected
*/
/**#@-*/
/**#@+
* @access private
*/
/**#@-*/
// }}}
}
// }}}
/*
* Local Variables:
* mode: php
* coding: utf-8
* tab-width: 4
* c-basic-offset: 4
* c-hanging-comment-ender-p: nil
* indent-tabs-mode: nil
* End:
*/
?>