pop() public method

Pops an item from the objects property table
public pop ( ) : mixed
return mixed The last item from the objects properties table
Ejemplo n.º 1
0
 public function testThreadedPop()
 {
     $threaded = new Threaded();
     $threaded[] = "something";
     $threaded[] = "else";
     $this->assertEquals("else", $threaded->pop());
     $this->assertEquals(1, count($threaded));
 }