Commits

Isidro Merayo Castellano committed 90e6a07

revised structure

  • Participants
  • Parent commits 5db7bd8
  • Tags v0.9.4

Comments (0)

Files changed (5)

 
 Notes
 =====
+
+[2013-02-18]
+
+Remove functional test because we need minimal enviroment to kata(yunos).
+Selenium RC will be another project (skeleton_PHP_testing)
+
 [2012-12-19]
 
 Change autoload to PSR-0 in src/
 If you install composer globally (http://getcomposer.org/doc/00-intro.md#globally),
 you should be use packagist :) (http://packagist.org/)
 
-$ composer create-project isidromerayo/simple_php_skeleton my_project_name --dev
+$ composer(.phar) create-project isidromerayo/simple_php_skeleton my_project_name --dev
 
 All-in-one install and check (inspired by https://gist.github.com/cordoval :)
 
 
 ### Update
 
-$ composer.phar update --dev
+$ composer(.phar) update --dev
 
 Using
 =====
 
 You should remove "Acme" namespace ;)
 
-Functional test with Selenium RC
-================================
-
-First you launch Selenium RC (require Java 1.5+)
-
-$ bin/launch_seleniumrc.sh
-
-$ bin/phpunit
-
-You should read the test API https://github.com/sebastianbergmann/phpunit-selenium/blob/master/Tests/Selenium2TestCaseTest.php
-
 Autotest
 ========
 

File bin/launch_seleniumrc.sh

-#!/bin/bash
-java -jar ./vendor/claylo/selenium-server-standalone/selenium-server-standalone-2.25.0.jar

File composer.json

         "pimple/pimple": "dev-master"
     },
     "require-dev": {
-        "phpunit/phpunit": "3.7.x-dev",
-        "phpunit/phpunit-selenium": ">=1.2",
-        "claylo/selenium-server-standalone": "dev-master"
+        "phpunit/phpunit": "3.7.x-dev"
     },
     "suggest": {
         "ext/xdebug": "Debugger and profiling"

File src/Acme/Service.php

 <?php
-
 namespace Acme;
+
 /**
+ * Service interface
  *
  * @author isidromerayo <isidro.merayo@gmail.com>
  */
 interface Service
 {
+    /**
+     * Read temperature
+     */
     public function readTemp();
 }

File tests/Acme/Functional/WebTest.php

-<?php
-namespace Test\Functional\Acme;
-/**
- * Test with Selenium
- */ 
-class WebTest extends \PHPUnit_Extensions_Selenium2TestCase
-{
-    protected function setUp()
-    {
-        // Selenium RC
-        $this->setHost('localhost');
-        $this->setPort(4444);
-        // Browser
-        $this->setBrowser('*firefox');
-        $this->setBrowserUrl('https://github.com/');
-    }
-
-    public function testTitle()
-    {
-        $this->url('isidromerayo/simple_php_skeleton');
-        $title = $this->title();
-        $this->assertEquals('isidromerayo/simple_php_skeleton · GitHub', $title);
-    }
-}