From: widmogrod Date: Wed, 20 Dec 2017 20:58:36 +0000 (+0100) Subject: Functional\length test X-Git-Tag: 4.0.0~3^2~24 X-Git-Url: http://cameron1729.xyz/?a=commitdiff_plain;h=0c0b1b1df7940cf8d4989f29da231baddc495575;p=php-functional.git Functional\length test --- diff --git a/test/Functional/LengthTest.php b/test/Functional/LengthTest.php new file mode 100644 index 0000000..b8461ff --- /dev/null +++ b/test/Functional/LengthTest.php @@ -0,0 +1,35 @@ +assertEquals(length($t), ($expected)); + } + + public function provideData() + { + return [ + 'Empty list should have length 0' => [ + '$t' => fromIterable([]), + '$expected' => 0, + ], + + 'Finite list should have length' => [ + '$t' => fromIterable([1, 2, 3, 4]), + '$expected' => 4, + ], + ]; + } +}