/** * Checks if the current bundle is an application bundle. * * @return boolean True if the current element is acceptable, otherwise false. * @link http://php.net/manual/en/filteriterator.accept.php */ public function accept() { /* @var $bundle BundleInterface */ $bundle = $this->current(); return !VendorResources::isVendorClass($bundle); }
/** * Ensures that isVendorClass() throws an exception if neither an object nor a valid * class name is passed. */ public function testIsVendorClassThrowsExceptionIfNoClassNameOrObjectIsPassed() { $this->setExpectedException('InvalidArgumentException'); VendorResources::isVendorClass('NoValidClassName'); }