فهرست منبع

TEST(phpt): add Italic and Underline test file

viest 7 سال پیش
والد
کامیت
72808f3541
2فایلهای تغییر یافته به همراه30 افزوده شده و 0 حذف شده
  1. 15 0
      tests/008.phpt
  2. 15 0
      tests/009.phpt

+ 15 - 0
tests/008.phpt

@@ -0,0 +1,15 @@
+--TEST--
+Check for vtiful presence
+--SKIPIF--
+<?php if (!extension_loaded("excel_writer")) print "skip"; ?>
+--FILE--
+<?php 
+$config = ['path' => './tests'];
+$excel = new \Vtiful\Kernel\Excel($config);
+$handle = $excel->fileName('tutorial01.xlsx')
+    ->getHandle();
+$italicStyle = \Vtiful\Kernel\Format::italic($handle);
+var_dump($italicStyle);
+?>
+--EXPECT--
+resource(5) of type (vtiful)

+ 15 - 0
tests/009.phpt

@@ -0,0 +1,15 @@
+--TEST--
+Check for vtiful presence
+--SKIPIF--
+<?php if (!extension_loaded("excel_writer")) print "skip"; ?>
+--FILE--
+<?php 
+$config = ['path' => './tests'];
+$excel = new \Vtiful\Kernel\Excel($config);
+$handle = $excel->fileName('tutorial01.xlsx')
+    ->getHandle();
+$underlineStyle = \Vtiful\Kernel\Format::underline($handle, \Vtiful\Kernel\Format::UNDERLINE_SINGLE);
+var_dump($underlineStyle);
+?>
+--EXPECT--
+resource(5) of type (vtiful)