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-04-27 16:28:25 -04:00
|
|
|
$this->mm = new MM(array(
|
2012-01-17 11:55:42 -05:00
|
|
|
'foo' => 54,
|
|
|
|
'bar' => 'baz',
|
|
|
|
));
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
}
|