Exemplo n.º 1
0
 public function testDisplayRequiresOptionsToBeArray()
 {
     if (PHP_MAJOR_VERSION < 7) {
         $this->setExpectedException('PHPUnit_Framework_Error');
         $mA = new Matrix(array());
         $formatter = $this->getMock("\\Chippyash\\Matrix\\Interfaces\\FormatterInterface");
         $mA->setFormatter($formatter);
         $this->assertEquals('foo', $mA->display('foo'));
     } else {
         $this->markTestSkipped('Test incompatible with PHP 7');
     }
 }