PHPSpec

Zusammenfassung

PHPSpec ist ein Design- Tool, das Ihnen helfen kann, sauber und gut funktionierend PHP-Code schreiben, mit Verhalten Driven Development oder BDD . BDD ist eine Technik von Test-First- Entwicklung abgeleitet . PHPSpec hilft Ihnen, die interne Verhalten der Anwendung zu beschreiben, indem er kleine ” Spezifikationen ” in der PHP-Sprache - daher SpecBDD . Diese Spezifikationen testen , dass Ihr Code hat das gewünschte Verhalten . PHPSpec reagiert auf das Verhalten in der unteren Ebene von der inneren der Klassen.

Hilfe Befehl

Der Befehl help führt den Anwender über den Zweck und als auch über die Möglichkeiten , die in der PHPSpec Modul enthalten sind. außerdem beschreibt die Syntax für die Installation des Moduls phpspec . Der Befehl help für phpspec Modul wird wie unten dargestellt.

ptconfigure phpspec help

Die bildliche Darstellung der obigen Befehl aufgelistet unten ,

kevell@corp:/# ptconfigure phpspec help

******************************


 This command allows you to install PHPSpec from a GC Repo.

 PHPSpec

       - install
       Installs Phpspec
       example: ptconfigure phpspec install

------------------------------
End Help
******************************

Installation

Der Befehl zum Installieren der phpspec Modul auf dem Endgerät verwendet wird nachstehend aufgeführten ,

ptconfigure phpspec install

Die bildliche Darstellung der obigen Befehl aufgelistet unten ,

kevell@corp:/# ptconfigure phpspec install

Install PHPSpec? (Y/N)
y
*******************************
*        Pharaoh Tools        *
*         PHPSpec!        *
*******************************
Creating /tmp/ptconfigure-temp-script-55050674265.sh
chmod 755 /tmp/ptconfigure-temp-script-55050674265.sh 2>/dev/null
Changing /tmp/ptconfigure-temp-script-55050674265.sh Permissions
Executing /tmp/ptconfigure-temp-script-55050674265.sh
Cloning into 'phpspec'...
remote: Counting objects: 13282, done.
remote: Compressing objects: 100% (177/177), done.
remote: Total 13282 (delta 105), reused 0 (delta 0), pack-reused 13084
Receiving objects: 100% (13282/13282), 3.01 MiB | 61.00 KiB/s, done.
Resolving deltas: 100% (6944/6944), done.
Checking connectivity... done.
--2015-03-31 17:39:51--  http://getcomposer.org/composer.phar
Resolving getcomposer.org (getcomposer.org)... 87.98.253.108
Connecting to getcomposer.org (getcomposer.org)|87.98.253.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1075150 (1.0M) [application/octet-stream]
Saving to: ‘composer.phar’

100%[============================================================================================>] 10,75,150   51.1KB/s   in 39s

2015-03-31 17:40:30 (27.2 KB/s) - ‘composer.phar’ saved [1075150/1075150]

PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing phpspec/php-diff (v1.0.2)
   Downloading: 100%

 - Installing sebastian/recursion-context (1.0.0)
   Loading from cache

 - Installing symfony/finder (v2.6.5)
   Downloading: 100%

 - Installing symfony/process (v2.6.5)
   Downloading: 100%

 - Installing phpdocumentor/reflection-docblock (2.0.4)
   Loading from cache

 - Installing symfony/class-loader (v2.6.5)
   Downloading: 100%

 - Installing symfony/yaml (v2.6.5)
   Loading from cache

 - Installing symfony/translation (v2.6.5)
   Downloading: 100%

 - Installing symfony/event-dispatcher (v2.6.5)
   Loading from cache

 - Installing symfony/dependency-injection (v2.6.5)
   Downloading: 100%

 - Installing symfony/filesystem (v2.6.5)
   Downloading: 100%

 - Installing symfony/config (v2.6.5)
   Downloading: 100%

 - Installing symfony/console (v2.6.5)
   Downloading: 100%

 - Installing behat/transliterator (v1.0.1)
   Downloading: 100%

 - Installing behat/gherkin (v4.3.0)
   Downloading: 100%

 - Installing behat/behat (v3.0.15)
   Downloading: 100%

 - Installing doctrine/instantiator (1.0.4)
   Loading from cache

 - Installing sebastian/exporter (1.2.0)
   Loading from cache

 - Installing sebastian/diff (1.2.0)
   Loading from cache

 - Installing sebastian/comparator (1.1.1)
   Loading from cache

 - Installing phpspec/prophecy (1.4.0)
   Downloading: 100%

 - Installing bossa/phpspec2-expect (1.0.3)
   Downloading: 100%

 - Installing sebastian/version (1.0.4)
   Loading from cache

 - Installing sebastian/global-state (1.0.0)
   Loading from cache

 - Installing sebastian/environment (1.2.1)
   Loading from cache

 - Installing phpunit/php-text-template (1.2.0)
   Loading from cache

 - Installing phpunit/phpunit-mock-objects (2.3.0)
   Loading from cache

 - Installing phpunit/php-timer (1.0.5)
   Loading from cache

 - Installing phpunit/php-token-stream (1.4.0)
   Loading from cache

 - Installing phpunit/php-file-iterator (1.3.4)
   Loading from cache

 - Installing phpunit/php-code-coverage (2.0.15)
   Loading from cache

 - Installing phpunit/phpunit (4.5.1)
   Downloading: 100%

phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
symfony/translation suggests installing psr/log (To use logging capability in translator)
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
symfony/console suggests installing psr/log (For using the console logger)
behat/behat suggests installing behat/symfony2-extension (for integration with Symfony2 web framework)
behat/behat suggests installing behat/yii-extension (for integration with Yii web framework)
behat/behat suggests installing behat/mink-extension (for integration with Mink testing framework)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Writing lock file
Generating autoload files
Temp File /tmp/ptconfigure-temp-script-55050674265.sh Removed
... All done!
*******************************
Thanks for installing , visit www.pharaohtools.com for more
******************************


Single App Installer:
--------------------------------------------
PHPSpec: Success
------------------------------
Installer Finished
******************************

Vorteile

  • Kontext spezifischen
  • Erwartung
  • Output ist die Dokumentation
comments powered by Disqus