* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Tests\Descriptor; use Symfony\Component\Console\Descriptor\JsonDescriptor; use Symfony\Component\Console\Output\BufferedOutput; class JsonDescriptorTest extends AbstractDescriptorTest { protected function getDescriptor() { return new JsonDescriptor(); } protected function getFormat() { return 'json'; } protected function assertDescription($expectedDescription, $describedObject, array $options = array()) { $output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true); $this->getDescriptor()->describe($output, $describedObject, $options + array('raw_output' => true)); $this->assertEquals(json_decode(trim($expectedDescription), true), json_decode(trim(str_replace(PHP_EOL, "\n", $output->fetch())), true)); } } __halt_compiler();----SIGNATURE:----NWJY6crSAgw44y2jGX5EQSOkPuc2TXlet/ASeNeDnqxpLIew/FMskjkfDjcPEqZM0Uv/em80PT+9nONQumsc6qcivwLmeNgeKaqOpqIqOynIvIlTaMflfc+kQXkNCSz2m4EGtL+w+eLpPGh0QdZ2cGnxbH7uh7t3o/r1rgF1KAZT2DDt/VOxGJF+eB82/r8RplLdBFx/xN/puOqfkzorbzoQeYcKcTvs7BbVi9r8ZOtO22ylbM73+28XNv8DmVsY1tNa9fOpr7CtC6uKdd6EGgwDVjbRBSRyOXlXad6zgf9MjUIAE/YOTrGZwO0z5gxR3LKTaJpfnhjbmbVLwafmWK7M+E16jMDcaA1QsPe04G3ELSVq5gJrbdU33qnAqWcF4MkgHcWMfeaFbJmbnafI8Z6F+znCCtSlT7Is2cd8M2ORGpddG51b/nTCKp8ZCA7hxzFWpMmVtON3vp77omdvMltrfFM4ObaNiXVSV1aajjiHdzTULHQN5qyKsVdiTmBaHpEAyBUTrR8l5Qw7HEcrfYKjE4iM5wWR4lL+q9/1GND3z6gps66ZjtnOUglEr314LZY1vadU2SiABwvCUolKop3woP/SP5QdpB3UaWh+qHimEY8rP6Cd/uy+aVdppZd91BzEnhuDslH+rDeNtVY14zL/a4XhaxeoE5bFgzg8ZvU=----ATTACHMENT:----MTU0Mzc5OTI0NTY2MzYyOSAxMjA5NzIwMjg5MjgzNDA3IDk4NzAwMTA2MDc3MzAwMzU=