public function testValidSubclassOf() { Assertion::subclassOf(new ChildStdClass(), 'stdClass'); }
private function assertExtendsEventSourcedAggregateRoot($class) { Assert::subclassOf($class, 'Broadway\\EventSourcing\\EventSourcedAggregateRoot', sprintf("Class '%s' is not an EventSourcedAggregateRoot.", $class)); }