for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cubiche/Async component.
*
* Copyright (c) Cubiche
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Core\Async\Tests\Units\Promise;
* Fulfilled Promise Tests class.
* @author Karel Osorio Ramírez <[email protected]>
class FulfilledPromiseTests extends PromiseInterfaceTestCase
{
* {@inheritdoc}
protected function defaultConstructorArguments()
return array($this->defaultResolveValue());
}
protected function promiseDataProvider()
return array(
array($this->newDefaultTestedInstance()),
);
* Test __construct.
public function testConstruct()
$this
->exception(function () {
$this->newTestedInstance($this->newDefaultTestedInstance());
})
->isInstanceOf(\InvalidArgumentException::class)
;