Ejemplo n.º 1
0
 public function testIsArray()
 {
     $boolItem = new Item(true);
     $this->assertFalse($boolItem->isArray());
     $intItem = new Item(123);
     $this->assertFalse($intItem->isArray());
     $floatItem = new Item(1.2);
     $this->assertFalse($floatItem->isArray());
     $stringItem = new Item('a string');
     $this->assertFalse($stringItem->isArray());
     $arrayItem = new Item(array('an array'));
     $this->assertTrue($arrayItem->isArray());
 }