for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Travis CI plugin for HiDev
*
* @link https://github.com/hiqdev/hidev-travis
* @package hidev-travis
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/
namespace hidev\travis\tests\unit\controllers;
use hidev\travis\controllers\TravisController;
/**
* Tests for TravisController.
class TravisControllerTest extends \PHPUnit_Framework_TestCase
{
* @var TravisController
protected $object;
protected function setUp()
$this->object = new TravisController('travis', null);
null
object<yii\base\Module>
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example:
function acceptsInteger($int) { } $x = '123'; // string "123" // Instead of acceptsInteger($x); // we recommend to use acceptsInteger((integer) $x);
}
protected function tearDown()
public function testConstructor()
$this->assertInstanceOf('hidev\base\Controller', $this->object);
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: