1<?php 2 3 4 5/** 6 * Test class for HeaderCell. 7 * @group Core 8 * @group ListComponent 9 */ 10class HeaderCellTest extends PHPUnit_Framework_TestCase { 11 12 /** 13 * @var HeaderCell 14 */ 15 protected $headerCell; 16 17 /** 18 * Sets up the fixture, for example, opens a network connection. 19 * This method is called before a test is executed. 20 */ 21 protected function setUp() { 22 $this->headerCell = new HeaderCell; 23 } 24 25 /** 26 * Tears down the fixture, for example, closes a network connection. 27 * This method is called after a test is executed. 28 */ 29 protected function tearDown() { 30 31 } 32 33 public function test__toString() { 34 $this->assertEquals('<span class="headerCell">Heading</span>', $this->headerCell->__toString()); 35 36 $this->headerCell->setProperties(array('label' => 'First Name')); 37 $this->assertEquals('<span class="headerCell">First Name</span>', $this->headerCell->__toString()); 38 } 39 40} 41 42?> 43