├── .gitignore ├── composer.json ├── .travis.yml ├── functions.php ├── index.php ├── README.md ├── tests └── StringTest.php └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | composer.lock 2 | # Dependencies 3 | vendor/ -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require-dev": { 3 | "phpunit/phpunit": "*" 4 | } 5 | } -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | php: 3 | - 5.4 4 | - 5.5 5 | - 5.6 6 | script: "phpunit tests" 7 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # travis-demonstration 2 | [![Build Status](https://travis-ci.org/kyleladd/travis-demonstration.svg?branch=master)](https://travis-ci.org/kyleladd/travis-demonstration) 3 | 4 | ## Installation 5 | ###### Install dependencies with Composer 6 | ``` 7 | composer install 8 | ``` 9 | ###### Run PHPUnit tests 10 | ``` 11 | vendor/phpunit/phpunit/phpunit tests 12 | ``` -------------------------------------------------------------------------------- /tests/StringTest.php: -------------------------------------------------------------------------------- 1 | assertEquals("This example is great.", makeGreat("This example is bad.")); 9 | $this->assertEquals("This example is great.", makeGreat("This example is BAD.")); 10 | $this->assertEquals("This example is great.", makeGreat("This example is Bad.")); 11 | $this->assertEquals("This example is B A D.", makeGreat("This example is B A D.")); 12 | $this->assertEquals("This presenter is great. Really great.", makeGreat("This presenter is Bad. Really bad.")); 13 | } 14 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Kyle Ladd 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | --------------------------------------------------------------------------------