Skip to content

Instantly share code, notes, and snippets.

View guilhermeblanco's full-sized avatar

Guilherme Blanco guilhermeblanco

  • Orlando, FL, USA
  • 19:12 (UTC -04:00)
View GitHub Profile
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Mapping;
use Closure;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\Type;
package com.company.communication.relay.configuration;
import com.company.communication.relay.client.UserAuthenticationClient;
import com.company.communication.relay.interceptor.AuthenticationChannelInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: myns-appname
namespace: myns
labels:
foo: bar
annotations:
docker.image: &imageval
"account/myns-appname:tag"
Guilhermes-MacBook-Pro:orm guilhermeblanco$ ./vendor/bin/phpunit
PHPUnit 6.5-g1ce64f90a by Sebastian Bergmann and contributors.
............................................................. 61 / 2821 ( 2%)
............................................................. 122 / 2821 ( 4%)
............................................................. 183 / 2821 ( 6%)
............................................................. 244 / 2821 ( 8%)
............................................................. 305 / 2821 ( 10%)
..............FF...........................................F. 366 / 2821 ( 12%)
.....................................SSSS.S.................. 427 / 2821 ( 15%)
Guilhermes-MacBook-Pro:orm guilhermeblanco$ ./vendor/bin/phpunit
PHPUnit 6.5-g1ce64f90a by Sebastian Bergmann and contributors.
Runtime: PHP 7.1.10 with Xdebug 2.5.5
Configuration: /Users/guilhermeblanco/doctrine/orm/phpunit.xml.dist
............................................................. 61 / 2822 ( 2%)
............................................................. 122 / 2822 ( 4%)
............................................................. 183 / 2822 ( 6%)
............................................................. 244 / 2822 ( 8%)
{
"tropo": [
{
"say": {
"value": "Message 1"
}
},
{
"say": {
"value": "Message 2"
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class Client
<?php
// ...
// Validate SingleValuedPathExpression (ie.: "product")
if (isset($this->queryComponents[$lookaheadValue]['metadata'])) {
$expr = $this->SingleValuedPathExpression();
break;
}
<?php
class Foo {
private $woo;
private $bar;
public function __construct($woo)
{
$this->woo = $woo;
diff --git a/tests/Regression/GitHub/2482.phpt b/tests/Regression/GitHub/2482.phpt
new file mode 100644
index 000000000..dd887c550
--- /dev/null
+++ b/tests/Regression/GitHub/2482.phpt
@@ -0,0 +1,19 @@
+--TEST--
+#2482: PHPUnit 6 upgrade fails 5.7 passing tests
+--FILE--
+<?php