public function testVar_dump() { // Extensive testing of this function would mostly mean extensive testing of PHP's native var_dump. So that's useless. Let's keep it easy $testvar = array('element 1', 'element2'); $this->assertSame("array(2) {\n [0]=>\n string(9) \"element 1\"\n [1]=>\n string(8) \"element2\"\n}\n", DAV::var_dump($testvar), 'DAV::var_dump() should return the correct value for $testvar'); }