public function testIsString() { $boolItem = new Item(true); $this->assertFalse($boolItem->isString()); $intItem = new Item(123); $this->assertFalse($intItem->isString()); $floatItem = new Item(1.2); $this->assertFalse($floatItem->isString()); $stringItem = new Item('a string'); $this->assertTrue($stringItem->isString()); $arrayItem = new Item(array('an array')); $this->assertFalse($arrayItem->isString()); }