2012-01-17 11:55:42 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test Class for JSObject class
|
|
|
|
*/
|
2012-04-27 16:28:25 -04:00
|
|
|
class MMTest extends UnitTestCase {
|
2012-01-17 11:55:42 -05:00
|
|
|
|
|
|
|
function __construct()
|
|
|
|
{
|
2012-04-27 16:28:25 -04:00
|
|
|
parent::__construct('MM Class Tests');
|
2012-01-17 11:55:42 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function setUp()
|
|
|
|
{
|
2012-05-22 11:11:36 -04:00
|
|
|
$this->mm = new miniMVC\MM([
|
2012-01-17 11:55:42 -05:00
|
|
|
'foo' => 54,
|
|
|
|
'bar' => 'baz',
|
2012-05-22 11:11:36 -04:00
|
|
|
]);
|
2012-01-17 11:55:42 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function tearDown()
|
|
|
|
{
|
2012-04-27 16:28:25 -04:00
|
|
|
unset($this->mm);
|
2012-01-17 11:55:42 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
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>');
|
2012-01-17 11:55:42 -05:00
|
|
|
}
|
2012-05-22 11:11:36 -04:00
|
|
|
|
|
|
|
function testMMIsA()
|
|
|
|
{
|
|
|
|
$this->assertIsA($this->mm, 'ArrayObject');
|
|
|
|
}
|
2012-01-17 11:55:42 -05:00
|
|
|
|
|
|
|
}
|