This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname(__DIR__).'/../../../../app/AppKernel.php'; | |
/** | |
* Test case class helpful with Entity tests requiring the database interaction. | |
* For regular entity tests it's better to extend standard \PHPUnit_Framework_TestCase instead. | |
*/ | |
abstract class KernelAwareTest extends \PHPUnit_Framework_TestCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Validator\ValidatorFactory; | |
use Doctrine\ORM\Mapping\Driver\AnnotationDriver; | |
use Doctrine\Common\Annotations\AnnotationReader; | |
use Doctrine\Common\Annotations\IndexedReader; | |
/** | |
* Prepare entity manager for testing LifeCycleCallbacks | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function testThatCreateAndUpdateDatesAreRegisteredAndIdGenerated() | |
{ | |
$this->prepareEntityManager(); | |
$now = new \DateTime('now'); | |
$moneyTransaction = $this->moneyTransaction; | |
$validator = $this->validator; | |
$recipient = new \Jazzy\UserBundle\Entity\User(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Set amount | |
* | |
* @param bigint $amount | |
*/ | |
public function setAmount($amount) | |
{ | |
if (is_int($amount) || is_float($amount)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="SS" default="build"> | |
<target name="build" | |
depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpunit,phpcb"/> | |
<target name="build-parallel" | |
depends="prepare,lint,tools-parallel,phpunit,phpcb"/> | |
<target name="tools-parallel" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function getBills() | |
{ | |
return array( | |
array( | |
120, | |
array( | |
array(120, 10, 25, false, 85), | |
array(0, 10, 25, false, -35), | |
array(0, 0, 25, false, -25), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$query = $em->createQuery('SELECT t FROM JazzyTransactionBundle:MoneyTransaction t WHERE t.sender = :user')->setParameter('user', $user); | |
$query->setFetchMode("JazzyTransactionBundle:MoneyTransaction", "sender", "EAGER"); | |
$transactions = $query->execute(); | |
WORKING: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="SquareShare" default="build"> | |
<target name="build" | |
depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpunit,phpcb"/> | |
<target name="build-parallel" | |
depends="prepare,lint,tools-parallel,phpunit,phpcb"/> | |
<target name="tools-parallel" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 Updating dependencies | |
2 PHP Warning: assert(): Assertion failed in phar:///home/cakper/public_html/square/composer.phar/src/Composer/DependencyResolver/Solver.php on line 1112 | |
3 PHP Stack trace: | |
4 PHP 1. {main}() /home/cakper/public_html/square/composer.phar:0 | |
5 PHP 2. require() /home/cakper/public_html/square/composer.phar:15 | |
6 PHP 3. Composer\Console\Application->run() phar:///home/cakper/public_html/square/composer.phar/bin/composer:9 | |
7 PHP 4. Symfony\Component\Console\Application->run() phar:///home/cakper/public_html/square/composer.phar/src/Composer/Console/Application.php:58 | |
8 PHP 5. Composer\Console\Application->doRun() phar:///home/cakper/public_html/square/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:106 | |
9 PHP 6. Symfony\Component\Console\Application->doRun() phar:///home/cakper/public_html/square/composer.phar/src/Composer/Console/Application.php:69 | |
10 PHP 7. Symfony\Component\Console\Command\Command->run() ph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="friend-picker-container"> | |
<ul class="friend-container"> | |
<li style="display: none;"> | |
<div class="friend-container"> | |
<span class="user-data">Me</span> | |
<button class="btn"><i class="icon-plus"></i> Add to Bill</button> | |
</div> | |
</li> | |
<li style="display: none;"> | |
<div class="friend-container"> |
OlderNewer