Skip to content

Commit

Permalink
Merge pull request #1 from ryantxr/master
Browse files Browse the repository at this point in the history
Update for PHP 7 and PHPUNIT 6
  • Loading branch information
buonzz authored Jun 17, 2018
2 parents eb74fb9 + 5db0ef8 commit 23792a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
],
"type": "project",
"require": {
"php": ">=5.4"
"php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "5.2.*"
"require-dev": {
"phpunit/phpunit": "6.*"
},
"autoload": {
"autoload": {
"psr-4": {
"Buonzz\\Template\\": "src/"
}
Expand Down
15 changes: 9 additions & 6 deletions tests/YourClassTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
use PHPUnit\Framework\TestCase;

/**
* Corresponding Class to test YourClass class
Expand All @@ -8,7 +9,8 @@
*
* @author yourname
*/
class YourClassTest extends PHPUnit_Framework_TestCase{
class YourClassTest extends TestCase
{

/**
* Just check if the YourClass has no syntax error
Expand All @@ -17,7 +19,8 @@ class YourClassTest extends PHPUnit_Framework_TestCase{
* any typo before you even use this library in a real project.
*
*/
public function testIsThereAnySyntaxError(){
public function testIsThereAnySyntaxError()
{
$var = new Buonzz\Template\YourClass;
$this->assertTrue(is_object($var));
unset($var);
Expand All @@ -30,10 +33,10 @@ public function testIsThereAnySyntaxError(){
* any typo before you even use this library in a real project.
*
*/
public function testMethod1(){
public function testMethod1()
{
$var = new Buonzz\Template\YourClass;
$this->assertTrue($var->method1("hey") == 'Hello World');
unset($var);
}

}
}
}

0 comments on commit 23792a6

Please sign in to comment.