GithubHelp home page GithubHelp logo

gerardroche / sublime-phpunit-snippets Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 32 KB

PHPUnit snippets for Sublime Text

Home Page: https://blog.gerardroche.com

License: BSD 3-Clause "New" or "Revised" License

JavaScript 100.00%
sublime-text phpunit snippets

sublime-phpunit-snippets's Introduction

phpunit-snippets

Author Source Code License GitHub stars Sublime version Latest version

PHPUnit snippets for Sublime Text.

THIS PROJECT IS NO LONGER MAINTAINED!

I moved all my snippets to my custom sublimefiles.

Overview

Works best with PHP Grammar, PHP Completions, PHP Snippets, PHPUnit, and PHPUnit Completions.

Features

  • PHPUnit ~4.4
  • DbUnit ~1.3
  • PSR compliant
  • Scoped to minimise auto-complete noise

Snippets

Trigger Description
phpunitxml PHPUnit: xml configuration declaration
provide PHPUnit: data provider test
setup PHPUnit: setup method declaration
teardown PHPUnit: teardown method declaration
test PHPUnit: test
testbootstrap PHPUnit: bootstrap
testcase PHPUnit: test case declaration
testd PHPUnit: test with annotated @depends

Key Bindings

OS X Windows Linux Description
Ctrl+Space Ctrl+Space Alt+/ Activate completions

To enable tab-completions set "tab_completion": true in Preferences > Settings - User.

Installation

Manual installation

  1. Close Sublime Text.
  2. Download or clone this repository to a directory named phpunit-snippets in the Sublime Text Packages directory for your platform:
    • Sublime Text 3
      • Linux: git clone https://github.com/gerardroche/sublime-phpunit-snippets.git ~/.config/sublime-text-3/Packages/phpunit-snippets
      • OS X: git clone https://github.com/gerardroche/sublime-phpunit-snippets.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/phpunit-snippets
      • Windows: git clone https://github.com/gerardroche/sublime-phpunit-snippets.git %APPDATA%\Sublime/ Text/ 3/Packages/phpunit-snippets
    • Sublime Text 2
      • Linux: git clone https://github.com/gerardroche/sublime-phpunit-snippets.git ~/.config/sublime-text-2/Packages/phpunit-snippets
      • OS X: git clone https://github.com/gerardroche/sublime-phpunit-snippets.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/phpunit-snippets
      • Windows: git clone https://github.com/gerardroche/sublime-phpunit-snippets.git %APPDATA%\Sublime/ Text/ 2/Packages/phpunit-snippets
  3. Restart Sublime Text to complete installation. The features listed above should now be available.

Contributing

Your issue reports and pull requests are always welcome.

Changelog

See CHANGELOG.md.

License

Released under the BSD 3-Clause License.

sublime-phpunit-snippets's People

Contributors

gerardroche avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

morogasper

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.