Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

chore(php) Update to PHP 7 #20

Merged
merged 2 commits into from
Jan 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Viewable.php → Source/Viewable.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Hoa
*
Expand Down Expand Up @@ -40,9 +42,6 @@
* Interface \Hoa\View\Viewable.
*
* Describe what a view could be.
*
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
interface Viewable
{
Expand Down
10 changes: 5 additions & 5 deletions Test/Unit/Viewable.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Hoa
*
Expand Down Expand Up @@ -37,22 +39,20 @@
namespace Hoa\View\Test\Unit;

use Hoa\Test;
use Hoa\View as LUT;

/**
* Class \Hoa\View\Test\Unit\Viewable.
*
* Test suite of the interface.
*
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Viewable extends Test\Unit\Suite
{
public function case_interface()
public function case_interface(): void
{
$this
->when($result = new \Mock\Hoa\View\Viewable())
->object($result)
->isInstanceOf('Hoa\View\Viewable');
->isInstanceOf(LUT\Viewable::class);
}
}
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@
"source": "https://central.hoa-project.net/Resource/Library/View"
},
"require": {
"php" : ">=5.5.0",
"php" : ">=7.1",
"hoa/consistency": "~1.0"
},
"require-dev": {
"hoa/test": "~2.0"
},
"autoload": {
"psr-4": {
"Hoa\\View\\": "."
"Hoa\\View\\" : "Source",
"Hoa\\View\\Test\\": "Test"
}
},
"suggest": {
Expand Down