Example #1
0
 /**
  * Tests flash can store array/object, not only strings.
  */
 public function testFlashKeepsObjects()
 {
     $c = new StdClass();
     $c->foo = 'bar';
     $f1 = new Slim_Session_Flash();
     $f1->set('object', $c);
     $f1->save();
     $f1->load();
     $this->assertObjectHasAttribute('foo', $f1['object']);
 }