public function testWhile() { $t = new \Test\Flow(); $this->assertSame($t->testWhile1(), 0); $this->assertSame($t->testWhile2(), 0); $this->assertSame($t->testWhile3(), 0.0); $this->assertSame($t->testWhile4(), 0.0); $this->assertSame($t->testWhile5(), 0); $this->assertSame($t->testWhile6(), 0); $this->assertSame($t->testWhile7(), 0.0); $this->assertSame($t->testWhile8(), 0.0); $this->assertSame($t->testWhile9(), 0.0); $this->assertSame($t->testWhile10(10), 0.0); $this->assertSame($t->testWhile11(1, 10), 0.0); $this->assertSame($t->testWhile12(), 5); $this->assertSame($t->testWhile13(), 5); $this->assertSame($t->testWhileNextTest(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)), array(1, 2, 3, 4, 5, 6, 7, 8, 9)); $this->assertSame($t->testWhileDoNextTest(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)), array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)); }