Prechádzať zdrojové kódy

TEST: Handle and Format

viest 7 rokov pred
rodič
commit
e2ff7f468f
2 zmenil súbory, kde vykonal 29 pridanie a 0 odobranie
  1. 14 0
      tests/006.phpt
  2. 15 0
      tests/007.phpt

+ 14 - 0
tests/006.phpt

@@ -0,0 +1,14 @@
+--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();
+var_dump($handle);
+?>
+--EXPECT--
+resource(4) of type (vtiful)

+ 15 - 0
tests/007.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();
+$boldStyle = \Vtiful\Kernel\Format::bold($handle);
+var_dump($boldStyle);
+?>
+--EXPECT--
+resource(5) of type (vtiful)