From aa1757da293b5a023b9bd3d096daacec91c1ec45 Mon Sep 17 00:00:00 2001 From: Barbara Pitt Date: Sat, 26 Dec 2020 20:34:23 -0600 Subject: [PATCH] issue#17 - unit tests - adding test for banners.php --- tests/bannersTest.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/bannersTest.php diff --git a/tests/bannersTest.php b/tests/bannersTest.php new file mode 100644 index 00000000..e432dffe --- /dev/null +++ b/tests/bannersTest.php @@ -0,0 +1,24 @@ +lain-bottom.png '; + + //capture input + ob_start(); + listBannersInDir("banners"); + $output = ob_get_contents(); + ob_end_clean(); + //end input + + //assertion + $this->assertEquals($output,$expected); + } +}