ninjify/nunjuck 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ninjify/nunjuck

最新稳定版本:v0.4.1

Composer 安装命令:

composer require ninjify/nunjuck

包简介

Special tuned version of nette/tester for your PHP projects

README 文档

README

Website ???? contributte.org | Contact ????????‍???? f3l1x.io | Twitter ???? @contributte

Usage

To install latest version of ninjify/nunjuck use Composer.

composer require --dev ninjify/nunjuck 

Versions

State Version Branch PHP
dev ^0.5.0 master >= 7.1
stable ^0.4.0 master >= 7.1

Documentation

Environment

use Ninjify\Nunjuck\Environment; # Configure Nette\Tester Environment::setupTester(); # Configure timezone (Europe/Prague by default) Environment::setupTimezone(); # Configure many constants Environment::setupVariables(); # Fill global variables Environment::setupGlobalVariables(); # Register robot loader Environment::setupRobotLoader(); Environment::setupRobotLoader(function($loader){});

TestCases

There are many predefined test cases.

  • BaseTestCase
  • BaseMockeryTestCase + TMockeryTestCase
  • BaseMockistaTestCase + TMockistaTestCase
  • BaseContainerTestCase + TContainerTestCase

Toolkit

Toolkit is class for handling anonymous tests functions.

  • Toolkit::setUp(function() { ... }) is called before test function.
  • Toolkit::tearDown(function() { ... }) is after before test function.
  • Toolkit::bind($object) binds new context into test function, you can access $this-> inside.
  • Toolkit::test(function() { ... }) triggers test function.

Notes

Little helper to your tests.

use Ninjify\Nunjuck\Notes; Notes::add('My note'); # ['My note'] $notes = Notes::fetch(); Notes::clear();

Development

See how to contribute to this package. This package is currently maintained by these authors.

Consider to support contributte development team. Also thank you for using this package.

统计信息

  • 总下载量: 421.91k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 4
  • 依赖项目数: 143
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固