2017 © Pedro PelĂĄez
 

library zephir-testcase

.zept test case with phpunit

image

fezfez/zephir-testcase

.zept test case with phpunit

  • Monday, January 4, 2016
  • by fezfez
  • Repository
  • 1 Watchers
  • 0 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Zephir test case (.zept)

Build Status Scrutinizer Code Quality SensioLabsInsight Code Coverage, (*1)

Can run your zephir tests like PHPTestcase (.phpt), (*2)

Install

composer require fezfez/zephir-testcase

sample

--TEST--
Test that elsif is not evaluated
--FILE--
namespace ZephirBug;

class bug1
{
    public function whatsisMyvar(myvar)
    {
        if is_string(myvar) {
            return "is a var";
        } elseif is_string(myvar[0]) {
            return "is an array and the first element is a string";
        }

        return "unkown";
    }
}
--USAGE--
<?php
use ZephirBug\bug1;

$tmp = new bug1();

var_dump($tmp->whatsisMyvar("a string"));
var_dump($tmp->whatsisMyvar(['a string']));
var_dump($tmp->whatsisMyvar(10));
--EXPECT--
string(8) "is a var"
string(45) "is an array and the first element is a string"
string(6) "unkown"

To run zephir-testcase

This command will run .zept with the compilation output, (*3)

./vendor/bin/zephir-testcase mytestdirectory

If you dont want to see the compilation add --silent option, (*4)

./vendor/bin/zephir-testcase mytestdirectory --silent

The Versions

04/01 2016

dev-master

9999999-dev https://github.com/fezfez/zephir-testcase

.zept test case with phpunit

  Sources   Download

MIT

The Development Requires

by Stéphane Demonchaux

phpunit zephir zephir test zept

04/01 2016

V0.2.5

0.2.5.0 https://github.com/fezfez/zephir-testcase

.zept test case with phpunit

  Sources   Download

MIT

The Development Requires

by Stéphane Demonchaux

phpunit zephir zephir test zept

01/10 2015

V0.2.4

0.2.4.0 https://github.com/fezfez/zephir-testcase

.zept test case with phpunit

  Sources   Download

The Development Requires

by Stéphane Demonchaux

phpunit zephir zephir test zept

30/09 2015

V0.2.3

0.2.3.0 https://github.com/fezfez/zephir-testcase

.zept test case with phpunit

  Sources   Download

The Development Requires

by Stéphane Demonchaux

phpunit zephir zephir test zept

30/09 2015

V0.2.2

0.2.2.0 https://github.com/fezfez/zephir-testcase

.zept test case with phpunit

  Sources   Download

The Development Requires

by Stéphane Demonchaux

phpunit zephir zephir test zept

27/09 2015

V0.2.1

0.2.1.0 https://github.com/fezfez/zephir-testcase

.zept test case with phpunit

  Sources   Download

The Requires

 

by Stéphane Demonchaux

phpunit zephir zephir test zept

27/09 2015

V0.2

0.2.0.0 https://github.com/fezfez/zephir-testcase

.zept test case with phpunit

  Sources   Download

The Requires

 

by Stéphane Demonchaux

phpunit zephir zephir test zept

27/09 2015

V0.1

0.1.0.0 https://github.com/fezfez/zephir-testcase

.zept test case with phpunit

  Sources   Download

The Requires

 

by Stéphane Demonchaux

phpunit zephir zephir test zept