Skip to content

Instantly share code, notes, and snippets.

Avatar

Guilherme Blanco guilhermeblanco

View GitHub Profile
View LazyDataType.php
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Mapping;
use Closure;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\Type;
View RelayAuthenticationConfiguration.java
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;
View deployment.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: myns-appname
namespace: myns
labels:
foo: bar
annotations:
docker.image: &imageval
"account/myns-appname:tag"
View output.sh
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%)
View output.sh
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%)
View response.json
{
"tropo": [
{
"say": {
"value": "Message 1"
}
},
{
"say": {
"value": "Message 2"
View Client.php
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class Client
View Parser.php
<?php
// ...
// Validate SingleValuedPathExpression (ie.: "product")
if (isset($this->queryComponents[$lookaheadValue]['metadata'])) {
$expr = $this->SingleValuedPathExpression();
break;
}
View proxy.php
<?php
class Foo {
private $woo;
private $bar;
public function __construct($woo)
{
$this->woo = $woo;
View p1.diff
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
You can’t perform that action at this time.