1 | <?php |
||
17 | class VisibleAs extends AbstractMethodAssert |
||
18 | { |
||
19 | use \Gabrieljmj\Should\Assert\Traits\VisibilityAssertTrait; |
||
20 | |||
21 | /** |
||
22 | * Visibility (public, private, protected) |
||
23 | * Use the constants of \Gabrieljmj\Should\Options\Visibility |
||
24 | * |
||
25 | * @var integer |
||
26 | */ |
||
27 | private $visibility; |
||
28 | |||
29 | /** |
||
30 | * @param string|object $class |
||
31 | * @param string $method |
||
32 | * @param integer $visibility \Gabrieljmj\Should\Options\Visibility consts |
||
33 | */ |
||
34 | public function __construct($class, $method, $visibility) |
||
39 | |||
40 | /** |
||
41 | * Executes the assert |
||
42 | * |
||
43 | * @return boolean |
||
44 | */ |
||
45 | public function execute() |
||
51 | |||
52 | /** |
||
53 | * Returns the assert description |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getDescription() |
||
61 | |||
62 | /** |
||
63 | * Creates the fail message |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | protected function createFailMessage() |
||
72 | } |