expectedException expects FQCN
This commit is contained in:
parent
8acf80f24d
commit
526b852d2c
@ -176,7 +176,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedExceptionMessage The command "foofoo" does not exist.
|
||||
*/
|
||||
public function testGetInvalidCommand()
|
||||
@ -212,7 +212,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedExceptionMessage The namespace "f" is ambiguous (foo, foo1).
|
||||
*/
|
||||
public function testFindAmbiguousNamespace()
|
||||
@ -225,7 +225,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedExceptionMessage There are no commands defined in the "bar" namespace.
|
||||
*/
|
||||
public function testFindInvalidNamespace()
|
||||
@ -235,7 +235,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedExceptionMessage Command "foo1" is not defined
|
||||
*/
|
||||
public function testFindUniqueNameButNamespaceName()
|
||||
@ -313,7 +313,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @dataProvider provideInvalidCommandNamesSingle
|
||||
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedExceptionMessage Did you mean this
|
||||
*/
|
||||
public function testFindAlternativeExceptionMessageSingle($name)
|
||||
@ -463,7 +463,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
|
||||
* @expectedExceptionMessage Command "foo::bar" is not defined.
|
||||
*/
|
||||
public function testFindWithDoubleColonInNameThrowsException()
|
||||
|
@ -257,7 +257,7 @@ class CommandTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Symfony\Component\Console\Exception\InvalidOptionException
|
||||
* @expectedException \Symfony\Component\Console\Exception\InvalidOptionException
|
||||
* @expectedExceptionMessage The "--bar" option does not exist.
|
||||
*/
|
||||
public function testRunWithInvalidOption()
|
||||
|
@ -632,7 +632,7 @@ TABLE;
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Symfony\Component\Console\Exception\InvalidArgumentException
|
||||
* @expectedException \Symfony\Component\Console\Exception\InvalidArgumentException
|
||||
* @expectedExceptionMessage Style "absent" is not defined.
|
||||
*/
|
||||
public function testIsNotDefinedStyleException()
|
||||
|
@ -194,7 +194,7 @@ class DefinitionTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @dataProvider invalidDeprecationMessageProvider
|
||||
* @expectedException Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
|
||||
* @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
|
||||
*/
|
||||
public function testSetDeprecatedWithInvalidDeprecationTemplate($message)
|
||||
{
|
||||
|
@ -68,7 +68,7 @@ class ChainDecoderTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Symfony\Component\Serializer\Exception\RuntimeException
|
||||
* @expectedException \Symfony\Component\Serializer\Exception\RuntimeException
|
||||
*/
|
||||
public function testDecodeUnsupportedFormat()
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ class ChainEncoderTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Symfony\Component\Serializer\Exception\RuntimeException
|
||||
* @expectedException \Symfony\Component\Serializer\Exception\RuntimeException
|
||||
*/
|
||||
public function testEncodeUnsupportedFormat()
|
||||
{
|
||||
|
@ -57,7 +57,7 @@ class JsonDecodeTest extends \PHPUnit_Framework_TestCase
|
||||
/**
|
||||
* @requires function json_last_error_msg
|
||||
* @dataProvider decodeProviderException
|
||||
* @expectedException Symfony\Component\Serializer\Exception\UnexpectedValueException
|
||||
* @expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException
|
||||
*/
|
||||
public function testDecodeWithException($value)
|
||||
{
|
||||
|
@ -50,7 +50,7 @@ class JsonEncodeTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @requires function json_last_error_msg
|
||||
* @expectedException Symfony\Component\Serializer\Exception\UnexpectedValueException
|
||||
* @expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException
|
||||
*/
|
||||
public function testEncodeWithError()
|
||||
{
|
||||
|
Reference in New Issue
Block a user