miniMVC/tests/MMTest.php

37 lines
573 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-05-22 11:11:36 -04:00
$this->mm = new miniMVC\MM([
'foo' => 54,
'bar' => 'baz',
2012-05-22 11:11:36 -04:00
]);
}
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>');
}
2012-05-22 11:11:36 -04:00
function testMMIsA()
{
$this->assertIsA($this->mm, 'ArrayObject');
}
}