miniMVC/tests/MMTest.php

32 lines
494 B
PHP
Raw Normal View History

<?php
/**
* Test Class for JSObject class
*/
2012-04-27 16:28:25 -04:00
class MMTest extends UnitTestCase {
function __construct()
{
2012-04-27 16:28:25 -04:00
parent::__construct('MM Class Tests');
}
function setUp()
{
2012-04-27 16:28:25 -04:00
$this->mm = new MM(array(
'foo' => 54,
'bar' => 'baz',
));
}
function tearDown()
{
2012-04-27 16:28:25 -04:00
unset($this->mm);
}
function testToStringDevel()
{
// __toString produces same output as print_r by default
2012-04-27 16:28:25 -04:00
$this->assertIdentical($this->mm->__toString(), '<pre>'.print_r($this->mm, TRUE).'</pre>');
}
}