for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Doctrine\Tests\Annotations;
use Doctrine\Annotations\Annotation;
use PHPUnit\Framework\TestCase;
final class AnnotationTest extends TestCase
{
public function testMagicGetThrowsBadMethodCallException()
$name = 'foo';
$annotation = new Annotation([]);
$this->expectException(\BadMethodCallException::class);
$this->expectExceptionMessage(sprintf(
"Unknown property '%s' on annotation '%s'.",
$name,
Annotation::class
));
$annotation->{$name};
}
public function testMagicSetThrowsBadMethodCallException()
$annotation->{$name} = 9001;