mirror of
https://github.com/danog/math.git
synced 2024-12-13 17:57:33 +01:00
49ea5a085e
Travis now supports merged code coverage reports, so we do not need to merge them ourselves.
22 lines
473 B
PHP
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);
|
|
}
|
|
}
|