From 554dc7bbebe5f1f6fb5071a4a551247f04817061 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); + } +}