1
0
mirror of https://github.com/danog/math.git synced 2024-11-30 04:19:31 +01:00
math/tests/CalculatorDetectTest.php
Benjamin Morel 49ea5a085e Reworked Travis build matrix
Travis now supports merged code coverage reports, so we do not need to merge them ourselves.
2015-05-22 13:39:59 +02:00

22 lines
473 B
PHP

<?php
namespace Brick\Math\Tests;
use Brick\Math\Internal\Calculator;
/**
* Tests for Calculator implementation detection.
*/
class CalculatorDetectTest extends \PHPUnit_Framework_TestCase
{
public function testGetWithNoCalculatorSetDetectsCalculator()
{
$currentCalculator = Calculator::get();
Calculator::set(null);
$this->assertInstanceOf(Calculator::class, Calculator::get());
Calculator::set($currentCalculator);
}
}