/** * Should return true for associative, and false for plain. */ public function testIsAssoc() { $ops = new Ops(); $no = array(1, 2, 3, 4); $yes = array('this' => 'is', 'associative'); $this->assertFalse($ops->_is_assoc($no)); $this->assertTrue($ops->_is_assoc($yes)); }