<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
/*
* @package Runemaster
* @copyright 2008 KUMAKURA Yousuke All rights reserved.
* @version SVN: $Id: AttributeSpec.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ã»ã¬ã¯ã¿ã«ããæå®ãã¼ãã®ã¨ã¬ã¡ã³ãã追å ã夿´ã§ãã()
{
$element = new stdClass();
$element->class = 'example';
$element->aaa = 'AAA';
$master = $this->_master;
$master->setAttribute('#foo', $element);
$display = rendererInTest($master, 'Attributes/Basic');
$result = file_get_contents('./results/Attributes/Basic.html');
$this->spec($display)->should->be($result);
}
public function itã»ã¬ã¯ã¿ã«ããè¤æ°å¯¾è±¡ã®ã¨ã¬ã¡ã³ãã追å ã夿´ã§ãã()
{
$element = new stdClass();
$element->class = 'example';
$element->aaa = 'AAA';
$master = $this->_master;
$master->setAttribute('span', $element);
$display = rendererInTest($master, 'Attributes/Multi');
$result = file_get_contents('./results/Attributes/Multi.html');
$this->spec($display)->should->be($result);
}
public function itã¨ã¬ã¡ã³ãã®åè¦ç´ ã®ãã¡ãä»ã®ã¨ããã¿ã°åã¯å¤ãããªã()
{
$element = new stdClass();
$element->tag = 'div';
$master = $this->_master;
$master->setAttribute('#foo', $element);
$display = rendererInTest($master, 'Attributes/Basic');
$result = file_get_contents('./templates/Attributes/Basic.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:
*/
?>