Added $checkExpectedClass to assertContainerBuilderHasService().
Changed is_null() to !== null.
Fixed Checkstyle.