Forráskód Böngészése

Merge pull request #31 from viest/dev

TEST(CI): Add PHP Version 7.2
王杰新 7 éve
szülő
commit
7696c71ad2
3 módosított fájl, 30 hozzáadás és 0 törlés
  1. 1 0
      .travis.yml
  2. 14 0
      tests/006.phpt
  3. 15 0
      tests/007.phpt

+ 1 - 0
.travis.yml

@@ -10,6 +10,7 @@ os:
 php:
   - 7.0
   - 7.1
+  - 7.2
 
 notifications:
   email: [email protected]

+ 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)