Beispiel #1
0
 public function setUp()
 {
     $this->stream = \Jopic\Stream::ofArray(array("key1" => "value1", "key2" => "value2", "key3" => 3, 4 => "value 4"));
 }
Beispiel #2
0
 /**
  * @expectedException BadMethodCallException
  */
 public function testAvgOnListStreamWithoutMapFunction()
 {
     $this->stream = \Jopic\Stream::ofList(array("a", "b"));
     $this->stream->avg();
 }