Merge branch '3.2'
* 3.2: Use PHPUnit 6.0 on PHP 7.* test lines
This commit is contained in:
commit
4c95d19c2d
5
phpunit
5
phpunit
@ -1,11 +1,14 @@
|
|||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Cache-Id: https://github.com/symfony/phpunit-bridge/commit/d3157d942a4590121dfd23f9cadf519ca6ad4ac7
|
// Cache-Id: https://github.com/symfony/phpunit-bridge/commit/2a45e94c3cde63d8cdfa729e51b80f85b1ab37f6
|
||||||
|
|
||||||
if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
|
if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
|
||||||
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\nPlease run `composer update` before running this command.\n";
|
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\nPlease run `composer update` before running this command.\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
if (PHP_VERSION_ID >= 70000 && !getenv('SYMFONY_PHPUNIT_VERSION')) {
|
||||||
|
putenv('SYMFONY_PHPUNIT_VERSION=6.0');
|
||||||
|
}
|
||||||
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
|
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
|
||||||
require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';
|
require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';
|
||||||
|
@ -23,14 +23,14 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/stopwatch": "~2.8|~3.0",
|
"symfony/stopwatch": "~2.8|~3.0",
|
||||||
"symfony/dependency-injection": "~3.3",
|
"symfony/dependency-injection": "~3.3",
|
||||||
"symfony/form": "^3.0.5",
|
"symfony/form": "^3.2.5",
|
||||||
"symfony/http-kernel": "~2.8|~3.0",
|
"symfony/http-kernel": "~2.8|~3.0",
|
||||||
"symfony/property-access": "~2.8|~3.0",
|
"symfony/property-access": "~2.8|~3.0",
|
||||||
"symfony/property-info": "~2.8|3.0",
|
"symfony/property-info": "~2.8|3.0",
|
||||||
"symfony/proxy-manager-bridge": "~2.8|~3.0",
|
"symfony/proxy-manager-bridge": "~2.8|~3.0",
|
||||||
"symfony/security": "~2.8|~3.0",
|
"symfony/security": "~2.8|~3.0",
|
||||||
"symfony/expression-language": "~2.8|~3.0",
|
"symfony/expression-language": "~2.8|~3.0",
|
||||||
"symfony/validator": "~2.8|~3.0",
|
"symfony/validator": "^2.8.18|^3.2.5",
|
||||||
"symfony/translation": "~2.8|~3.0",
|
"symfony/translation": "~2.8|~3.0",
|
||||||
"doctrine/data-fixtures": "1.0.*",
|
"doctrine/data-fixtures": "1.0.*",
|
||||||
"doctrine/dbal": "~2.4",
|
"doctrine/dbal": "~2.4",
|
||||||
|
@ -31,6 +31,14 @@ class Test
|
|||||||
EOPHP
|
EOPHP
|
||||||
);
|
);
|
||||||
|
|
||||||
|
class PHPUnit_Util_Test
|
||||||
|
{
|
||||||
|
public static function getGroups()
|
||||||
|
{
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class FooTestCase
|
class FooTestCase
|
||||||
{
|
{
|
||||||
public function testLegacyFoo()
|
public function testLegacyFoo()
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/asset": "~2.8|~3.0",
|
"symfony/asset": "~2.8|~3.0",
|
||||||
"symfony/finder": "~2.8|~3.0",
|
"symfony/finder": "~2.8|~3.0",
|
||||||
"symfony/form": "~3.1.9|^3.2.2",
|
"symfony/form": "^3.2.5",
|
||||||
"symfony/http-kernel": "~3.2",
|
"symfony/http-kernel": "~3.2",
|
||||||
"symfony/polyfill-intl-icu": "~1.0",
|
"symfony/polyfill-intl-icu": "~1.0",
|
||||||
"symfony/routing": "~2.8|~3.0",
|
"symfony/routing": "~2.8|~3.0",
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
"symfony/css-selector": "~2.8|~3.0",
|
"symfony/css-selector": "~2.8|~3.0",
|
||||||
"symfony/dom-crawler": "~2.8|~3.0",
|
"symfony/dom-crawler": "~2.8|~3.0",
|
||||||
"symfony/form": "~2.8|~3.0",
|
"symfony/form": "~2.8|~3.0",
|
||||||
"symfony/framework-bundle": "~3.1",
|
"symfony/framework-bundle": "^3.2.5",
|
||||||
"symfony/http-foundation": "~2.8|~3.0",
|
"symfony/http-foundation": "~2.8|~3.0",
|
||||||
"symfony/security-acl": "~2.8|~3.0",
|
"symfony/security-acl": "~2.8|~3.0",
|
||||||
"symfony/twig-bundle": "~2.8|~3.0",
|
"symfony/twig-bundle": "~2.8|~3.0",
|
||||||
|
@ -13,6 +13,18 @@ namespace Symfony\Component\Cache\Tests\Adapter;
|
|||||||
|
|
||||||
use Cache\IntegrationTests\CachePoolTest;
|
use Cache\IntegrationTests\CachePoolTest;
|
||||||
|
|
||||||
|
if (!class_exists('PHPUnit_Framework_TestCase')) {
|
||||||
|
abstract class AdapterTestCase
|
||||||
|
{
|
||||||
|
public static function setUpBeforeClass()
|
||||||
|
{
|
||||||
|
self::markTestSkipped('cache/integration-tests is not yet compatible with namespaced phpunit versions.');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
abstract class AdapterTestCase extends CachePoolTest
|
abstract class AdapterTestCase extends CachePoolTest
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
@ -13,6 +13,18 @@ namespace Symfony\Component\Cache\Tests\Simple;
|
|||||||
|
|
||||||
use Cache\IntegrationTests\SimpleCacheTest;
|
use Cache\IntegrationTests\SimpleCacheTest;
|
||||||
|
|
||||||
|
if (!class_exists('PHPUnit_Framework_TestCase')) {
|
||||||
|
abstract class CacheTestCase
|
||||||
|
{
|
||||||
|
public static function setUpBeforeClass()
|
||||||
|
{
|
||||||
|
self::markTestSkipped('cache/integration-tests is not yet compatible with namespaced phpunit versions.');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
abstract class CacheTestCase extends SimpleCacheTest
|
abstract class CacheTestCase extends SimpleCacheTest
|
||||||
{
|
{
|
||||||
public function testDefaultLifeTime()
|
public function testDefaultLifeTime()
|
||||||
|
@ -11,7 +11,8 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Console\Tests\Logger;
|
namespace Symfony\Component\Console\Tests\Logger;
|
||||||
|
|
||||||
use Psr\Log\Test\LoggerInterfaceTest;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
use Psr\Log\LoggerInterface;
|
||||||
use Psr\Log\LogLevel;
|
use Psr\Log\LogLevel;
|
||||||
use Symfony\Component\Console\Logger\ConsoleLogger;
|
use Symfony\Component\Console\Logger\ConsoleLogger;
|
||||||
use Symfony\Component\Console\Output\BufferedOutput;
|
use Symfony\Component\Console\Output\BufferedOutput;
|
||||||
@ -22,8 +23,9 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||||||
* Console logger test.
|
* Console logger test.
|
||||||
*
|
*
|
||||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||||
|
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||||
*/
|
*/
|
||||||
class ConsoleLoggerTest extends LoggerInterfaceTest
|
class ConsoleLoggerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var DummyOutput
|
* @var DummyOutput
|
||||||
@ -31,7 +33,7 @@ class ConsoleLoggerTest extends LoggerInterfaceTest
|
|||||||
protected $output;
|
protected $output;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* @return LoggerInterface
|
||||||
*/
|
*/
|
||||||
public function getLogger()
|
public function getLogger()
|
||||||
{
|
{
|
||||||
@ -50,7 +52,9 @@ class ConsoleLoggerTest extends LoggerInterfaceTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* Return the log messages in order.
|
||||||
|
*
|
||||||
|
* @return string[]
|
||||||
*/
|
*/
|
||||||
public function getLogs()
|
public function getLogs()
|
||||||
{
|
{
|
||||||
@ -101,4 +105,113 @@ class ConsoleLoggerTest extends LoggerInterfaceTest
|
|||||||
$logger->error('bar');
|
$logger->error('bar');
|
||||||
$this->assertTrue($logger->hasErrored());
|
$this->assertTrue($logger->hasErrored());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testImplements()
|
||||||
|
{
|
||||||
|
$this->assertInstanceOf('Psr\Log\LoggerInterface', $this->getLogger());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dataProvider provideLevelsAndMessages
|
||||||
|
*/
|
||||||
|
public function testLogsAtAllLevels($level, $message)
|
||||||
|
{
|
||||||
|
$logger = $this->getLogger();
|
||||||
|
$logger->{$level}($message, array('user' => 'Bob'));
|
||||||
|
$logger->log($level, $message, array('user' => 'Bob'));
|
||||||
|
|
||||||
|
$expected = array(
|
||||||
|
$level.' message of level '.$level.' with context: Bob',
|
||||||
|
$level.' message of level '.$level.' with context: Bob',
|
||||||
|
);
|
||||||
|
$this->assertEquals($expected, $this->getLogs());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function provideLevelsAndMessages()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
LogLevel::EMERGENCY => array(LogLevel::EMERGENCY, 'message of level emergency with context: {user}'),
|
||||||
|
LogLevel::ALERT => array(LogLevel::ALERT, 'message of level alert with context: {user}'),
|
||||||
|
LogLevel::CRITICAL => array(LogLevel::CRITICAL, 'message of level critical with context: {user}'),
|
||||||
|
LogLevel::ERROR => array(LogLevel::ERROR, 'message of level error with context: {user}'),
|
||||||
|
LogLevel::WARNING => array(LogLevel::WARNING, 'message of level warning with context: {user}'),
|
||||||
|
LogLevel::NOTICE => array(LogLevel::NOTICE, 'message of level notice with context: {user}'),
|
||||||
|
LogLevel::INFO => array(LogLevel::INFO, 'message of level info with context: {user}'),
|
||||||
|
LogLevel::DEBUG => array(LogLevel::DEBUG, 'message of level debug with context: {user}'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @expectedException \Psr\Log\InvalidArgumentException
|
||||||
|
*/
|
||||||
|
public function testThrowsOnInvalidLevel()
|
||||||
|
{
|
||||||
|
$logger = $this->getLogger();
|
||||||
|
$logger->log('invalid level', 'Foo');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testContextReplacement()
|
||||||
|
{
|
||||||
|
$logger = $this->getLogger();
|
||||||
|
$logger->info('{Message {nothing} {user} {foo.bar} a}', array('user' => 'Bob', 'foo.bar' => 'Bar'));
|
||||||
|
|
||||||
|
$expected = array('info {Message {nothing} Bob Bar a}');
|
||||||
|
$this->assertEquals($expected, $this->getLogs());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testObjectCastToString()
|
||||||
|
{
|
||||||
|
if (method_exists($this, 'createPartialMock')) {
|
||||||
|
$dummy = $this->createPartialMock('Symfony\Component\Console\Tests\Logger\DummyTest', array('__toString'));
|
||||||
|
} else {
|
||||||
|
$dummy = $this->getMock('Symfony\Component\Console\Tests\Logger\DummyTest', array('__toString'));
|
||||||
|
}
|
||||||
|
$dummy->expects($this->once())
|
||||||
|
->method('__toString')
|
||||||
|
->will($this->returnValue('DUMMY'));
|
||||||
|
|
||||||
|
$this->getLogger()->warning($dummy);
|
||||||
|
|
||||||
|
$expected = array('warning DUMMY');
|
||||||
|
$this->assertEquals($expected, $this->getLogs());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testContextCanContainAnything()
|
||||||
|
{
|
||||||
|
$context = array(
|
||||||
|
'bool' => true,
|
||||||
|
'null' => null,
|
||||||
|
'string' => 'Foo',
|
||||||
|
'int' => 0,
|
||||||
|
'float' => 0.5,
|
||||||
|
'nested' => array('with object' => new DummyTest()),
|
||||||
|
'object' => new \DateTime(),
|
||||||
|
'resource' => fopen('php://memory', 'r'),
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->getLogger()->warning('Crazy context data', $context);
|
||||||
|
|
||||||
|
$expected = array('warning Crazy context data');
|
||||||
|
$this->assertEquals($expected, $this->getLogs());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testContextExceptionKeyCanBeExceptionOrOtherValues()
|
||||||
|
{
|
||||||
|
$logger = $this->getLogger();
|
||||||
|
$logger->warning('Random message', array('exception' => 'oops'));
|
||||||
|
$logger->critical('Uncaught Exception!', array('exception' => new \LogicException('Fail')));
|
||||||
|
|
||||||
|
$expected = array(
|
||||||
|
'warning Random message',
|
||||||
|
'critical Uncaught Exception!',
|
||||||
|
);
|
||||||
|
$this->assertEquals($expected, $this->getLogs());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class DummyTest
|
||||||
|
{
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -195,7 +195,12 @@ class FormPassTest extends TestCase
|
|||||||
$container->setDefinition('form.extension', $extDefinition);
|
$container->setDefinition('form.extension', $extDefinition);
|
||||||
$container->register($id, 'stdClass')->setPublic(false)->addTag($tagName);
|
$container->register($id, 'stdClass')->setPublic(false)->addTag($tagName);
|
||||||
|
|
||||||
$this->setExpectedException('\InvalidArgumentException', $expectedExceptionMessage);
|
if (method_exists($this, 'expectException')) {
|
||||||
|
$this->expectException('InvalidArgumentException');
|
||||||
|
$this->expectExceptionMessage($expectedExceptionMessage);
|
||||||
|
} else {
|
||||||
|
$this->setExpectedException('InvalidArgumentException', $expectedExceptionMessage);
|
||||||
|
}
|
||||||
|
|
||||||
$container->compile();
|
$container->compile();
|
||||||
}
|
}
|
||||||
|
@ -18,14 +18,14 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.5.9",
|
"php": ">=5.5.9",
|
||||||
"symfony/event-dispatcher": "~2.8|~3.0",
|
"symfony/event-dispatcher": "~2.8|~3.0",
|
||||||
"symfony/intl": "~2.8|~3.0",
|
"symfony/intl": "^2.8.18|^3.2.5",
|
||||||
"symfony/options-resolver": "~2.8|~3.0",
|
"symfony/options-resolver": "~2.8|~3.0",
|
||||||
"symfony/polyfill-mbstring": "~1.0",
|
"symfony/polyfill-mbstring": "~1.0",
|
||||||
"symfony/property-access": "~2.8|~3.0"
|
"symfony/property-access": "~2.8|~3.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"doctrine/collections": "~1.0",
|
"doctrine/collections": "~1.0",
|
||||||
"symfony/validator": "~2.8|~3.0",
|
"symfony/validator": "^2.8.18|^3.2.5",
|
||||||
"symfony/dependency-injection": "~3.2",
|
"symfony/dependency-injection": "~3.2",
|
||||||
"symfony/config": "~2.7|~3.0",
|
"symfony/config": "~2.7|~3.0",
|
||||||
"symfony/http-foundation": "~2.8|~3.0",
|
"symfony/http-foundation": "~2.8|~3.0",
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
"symfony/expression-language": "~2.8|~3.0",
|
"symfony/expression-language": "~2.8|~3.0",
|
||||||
"symfony/http-foundation": "~2.8|~3.0",
|
"symfony/http-foundation": "~2.8|~3.0",
|
||||||
"symfony/ldap": "~3.1",
|
"symfony/ldap": "~3.1",
|
||||||
"symfony/validator": "~2.8|~3.0",
|
"symfony/validator": "^2.8.18|^3.2.5",
|
||||||
"psr/log": "~1.0"
|
"psr/log": "~1.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
"symfony/finder": "~2.8|~3.0",
|
"symfony/finder": "~2.8|~3.0",
|
||||||
"symfony/polyfill-intl-icu": "~1.0",
|
"symfony/polyfill-intl-icu": "~1.0",
|
||||||
"symfony/routing": "~2.8|~3.0",
|
"symfony/routing": "~2.8|~3.0",
|
||||||
"symfony/validator": "~2.8|~3.0",
|
"symfony/validator": "^2.8.18|^3.2.5",
|
||||||
"symfony/expression-language": "~2.8|~3.0",
|
"symfony/expression-language": "~2.8|~3.0",
|
||||||
"symfony/ldap": "~3.1",
|
"symfony/ldap": "~3.1",
|
||||||
"psr/log": "~1.0"
|
"psr/log": "~1.0"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/config": "~2.8|~3.0",
|
"symfony/config": "~2.8|~3.0",
|
||||||
"symfony/intl": "~2.8|~3.0",
|
"symfony/intl": "^2.8.18|^3.2.5",
|
||||||
"symfony/yaml": "~2.8|~3.0",
|
"symfony/yaml": "~2.8|~3.0",
|
||||||
"psr/log": "~1.0"
|
"psr/log": "~1.0"
|
||||||
},
|
},
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/http-foundation": "~2.8|~3.0",
|
"symfony/http-foundation": "~2.8|~3.0",
|
||||||
"symfony/intl": "~2.8|~3.0",
|
"symfony/intl": "^2.8.18|^3.2.5",
|
||||||
"symfony/yaml": "~2.8|~3.0",
|
"symfony/yaml": "~2.8|~3.0",
|
||||||
"symfony/config": "~2.8|~3.0",
|
"symfony/config": "~2.8|~3.0",
|
||||||
"symfony/expression-language": "~2.8|~3.0",
|
"symfony/expression-language": "~2.8|~3.0",
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
namespace Symfony\Component\Yaml\Tests;
|
namespace Symfony\Component\Yaml\Tests;
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
use Symfony\Component\Yaml\Exception\ParseException;
|
||||||
use Symfony\Component\Yaml\Inline;
|
use Symfony\Component\Yaml\Inline;
|
||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
||||||
|
|
||||||
@ -651,10 +652,15 @@ class InlineTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider getInvalidBinaryData
|
* @dataProvider getInvalidBinaryData
|
||||||
|
* @expectedException \Symfony\Component\Yaml\Exception\ParseException
|
||||||
*/
|
*/
|
||||||
public function testParseInvalidBinaryData($data, $expectedMessage)
|
public function testParseInvalidBinaryData($data, $expectedMessage)
|
||||||
{
|
{
|
||||||
$this->setExpectedExceptionRegExp('\Symfony\Component\Yaml\Exception\ParseException', $expectedMessage);
|
if (method_exists($this, 'expectException')) {
|
||||||
|
$this->expectExceptionMessageRegExp($expectedMessage);
|
||||||
|
} else {
|
||||||
|
$this->setExpectedExceptionRegExp(ParseException::class, $expectedMessage);
|
||||||
|
}
|
||||||
|
|
||||||
Inline::parse($data);
|
Inline::parse($data);
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
namespace Symfony\Component\Yaml\Tests;
|
namespace Symfony\Component\Yaml\Tests;
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
use Symfony\Component\Yaml\Exception\ParseException;
|
||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
||||||
use Symfony\Component\Yaml\Parser;
|
use Symfony\Component\Yaml\Parser;
|
||||||
use Symfony\Component\Yaml\Tag\TaggedValue;
|
use Symfony\Component\Yaml\Tag\TaggedValue;
|
||||||
@ -1315,10 +1316,15 @@ EOT
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider getInvalidBinaryData
|
* @dataProvider getInvalidBinaryData
|
||||||
|
* @expectedException \Symfony\Component\Yaml\Exception\ParseException
|
||||||
*/
|
*/
|
||||||
public function testParseInvalidBinaryData($data, $expectedMessage)
|
public function testParseInvalidBinaryData($data, $expectedMessage)
|
||||||
{
|
{
|
||||||
$this->setExpectedExceptionRegExp('\Symfony\Component\Yaml\Exception\ParseException', $expectedMessage);
|
if (method_exists($this, 'expectException')) {
|
||||||
|
$this->expectExceptionMessageRegExp($expectedMessage);
|
||||||
|
} else {
|
||||||
|
$this->setExpectedExceptionRegExp(ParseException::class, $expectedMessage);
|
||||||
|
}
|
||||||
|
|
||||||
$this->parser->parse($data);
|
$this->parser->parse($data);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user